summaryrefslogtreecommitdiff
path: root/protocols/Sametime/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Sametime/src')
-rw-r--r--protocols/Sametime/src/userlist.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/protocols/Sametime/src/userlist.cpp b/protocols/Sametime/src/userlist.cpp
index a16ed8d103..8b892d85d5 100644
--- a/protocols/Sametime/src/userlist.cpp
+++ b/protocols/Sametime/src/userlist.cpp
@@ -65,15 +65,7 @@ MCONTACT CSametimeProto::AddContact(mwSametimeUser* user, bool temporary)
bool new_contact = false;
if (!hContact) {
hContact = db_add_contact();
- if (!hContact) {
- debugLogW(L"AddContact(): Failed to create Sametime contact");
- return NULL; ///TODO error handling
- }
- if (Proto_AddToContact(hContact, m_szModuleName) != 0) {
- db_delete_contact(hContact);
- debugLogW(L"AddContact(): Failed to register Sametime contact");
- return NULL; ///TODO error handling
- }
+ Proto_AddToContact(hContact, m_szModuleName);
new_contact = true;
}
else if (!temporary) {