diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-03-20 07:27:04 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-03-20 07:27:04 +0000 |
commit | 3c65c36ab09cb7bffd4e3ac699fcb32d74da65a5 (patch) | |
tree | d40481d91c8a389e5d2ae92f98aef29a4394e635 /protocols | |
parent | ec56ce9659fcbf0e6725e41492095adfc3ef8d2f (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.cpp | 9 |
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);
}
|