summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-07-15 08:29:28 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-07-15 08:29:28 +0000
commitc59762e958cc7f412379ce4b90d378f0c6b62022 (patch)
treebe290e81549f45641b5134fd2ef79bf14ad1a81d /protocols
parent26dfe484cd4508eaf0aea2d06c983b6c5ec7aa25 (diff)
SkypeWeb: fix add contacts
git-svn-id: http://svn.miranda-ng.org/main/trunk@14562 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-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;
}