summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r--protocols/SkypeWeb/src/skype_proto.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp
index e9b6d2b816..b02cfcde83 100644
--- a/protocols/SkypeWeb/src/skype_proto.cpp
+++ b/protocols/SkypeWeb/src/skype_proto.cpp
@@ -100,17 +100,23 @@ DWORD_PTR CSkypeProto::GetCaps(int type, MCONTACT)
MCONTACT CSkypeProto::AddToList(int, PROTOSEARCHRESULT *psr)
{
- debugLogA("CSkypeProto::AddToList");
+ debugLogA(__FUNCTION__);
if (psr->id.a == NULL)
return NULL;
-
- MCONTACT hContact = AddContact(psr->id.a);
+ MCONTACT hContact;
+
+ if (psr->flags & PSR_UNICODE)
+ hContact = AddContact(mir_utf8encodeT(psr->id.t));
+ else
+ hContact = AddContact(psr->id.a);
+
return hContact;
}
MCONTACT CSkypeProto::AddToListByEvent(int, int, MEVENT hDbEvent)
{
+ debugLogA(__FUNCTION__);
DBEVENTINFO dbei = { sizeof(dbei) };
if ((dbei.cbBlob = db_event_getBlobSize(hDbEvent)) == (DWORD)(-1))
return NULL;
@@ -128,6 +134,8 @@ MCONTACT CSkypeProto::AddToListByEvent(int, int, MEVENT hDbEvent)
char *lastName = firstName + mir_strlen(firstName) + 1;
char *skypename = lastName + mir_strlen(lastName) + 1;
+ debugLogA(__FUNCTION__ " %s", mir_utf8decodeA(skypename));
+
MCONTACT hContact = AddContact(skypename);
return hContact;
}