summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-03-20 07:27:04 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-03-20 07:27:04 +0000
commit3c65c36ab09cb7bffd4e3ac699fcb32d74da65a5 (patch)
treed40481d91c8a389e5d2ae92f98aef29a4394e635 /protocols
parentec56ce9659fcbf0e6725e41492095adfc3ef8d2f (diff)
emails support
git-svn-id: http://svn.miranda-ng.org/main/trunk@12443 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeWeb/src/skype_profile.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/skype_profile.cpp b/protocols/SkypeWeb/src/skype_profile.cpp
index 30915f41ff..57872d6954 100644
--- a/protocols/SkypeWeb/src/skype_profile.cpp
+++ b/protocols/SkypeWeb/src/skype_profile.cpp
@@ -322,17 +322,16 @@ void CSkypeProto::UpdateProfileEmails(JSONNODE *root, MCONTACT hContact)
JSONNODE *node = json_get(root, "emails");
if (!json_empty(node))
{
- JSONNODE *items = json_as_array(root), *item;
+ JSONNODE *items = json_as_array(node), *item;
for (size_t i = 0; i < min(json_size(items), 3); i++)
{
item = json_at(items, i);
if (item == NULL)
break;
- // how to read array of string?
- //CMStringA name(FORMAT, "e-mail%d", i);
- //CMString value = ptrT(json_as_string(item));
- //setTString(hContact, name, value);
+ CMStringA name(FORMAT, "e-mail%d", i);
+ CMString value = ptrT(json_as_string(item));
+ setTString(hContact, name, value);
}
json_delete(items);
}