summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Gadu-Gadu/src')
-rw-r--r--protocols/Gadu-Gadu/src/core.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/protocols/Gadu-Gadu/src/core.cpp b/protocols/Gadu-Gadu/src/core.cpp
index d1d74dbc57..d6a16a9493 100644
--- a/protocols/Gadu-Gadu/src/core.cpp
+++ b/protocols/Gadu-Gadu/src/core.cpp
@@ -1469,17 +1469,7 @@ MCONTACT GaduProto::getcontact(uin_t uin, int create, int inlist, wchar_t *szNic
return NULL;
MCONTACT hContact = db_add_contact();
- if (!hContact) {
- debugLogW(L"getcontact(): Failed to create Gadu-Gadu contact %s", szNick);
- return NULL;
- }
-
- if (Proto_AddToContact(hContact, m_szModuleName) != 0) {
- // For some reason we failed to register the protocol for this contact
- db_delete_contact(hContact);
- debugLogA("getcontact(): Failed to register GG contact %d", uin);
- return NULL;
- }
+ Proto_AddToContact(hContact, m_szModuleName);
debugLogA("getcontact(): Added buddy: %d", uin);
if (!inlist)