summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r--protocols/SkypeWeb/src/skype_poll_processing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_poll_processing.cpp b/protocols/SkypeWeb/src/skype_poll_processing.cpp
index e55a080fb8..806e25430d 100644
--- a/protocols/SkypeWeb/src/skype_poll_processing.cpp
+++ b/protocols/SkypeWeb/src/skype_poll_processing.cpp
@@ -116,7 +116,7 @@ void CSkypeProto::ProcessNewMessageRes(JSONNODE *node)
MCONTACT hContact = GetContact(skypename);
if (hContact == NULL && !IsMe(skypename))
- AddContact(skypename, true);
+ hContact = AddContact(skypename, true);
if (!mir_strcmpi(messageType, "Control/Typing"))
{
@@ -169,7 +169,7 @@ void CSkypeProto::ProcessConversationUpdateRes(JSONNODE *node)
MCONTACT hContact = GetContact(skypename);
if (hContact == NULL && !IsMe(skypename))
- AddContact(skypename, true);
+ hContact = AddContact(skypename, true);
if (!mir_strcmpi(messageType, "Control/Typing"))
{