From 3c65c36ab09cb7bffd4e3ac699fcb32d74da65a5 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 20 Mar 2015 07:27:04 +0000 Subject: emails support git-svn-id: http://svn.miranda-ng.org/main/trunk@12443 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_profile.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'protocols') 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); } -- cgit v1.2.3