diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-20 20:41:28 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-20 20:41:28 +0000 |
commit | 9f4f39f35a69f6825ab18b76f2b37fd982b924fa (patch) | |
tree | e1ef61b19d8e43adbe8007ef27924da31796ffdf /protocols | |
parent | 7500a9902af50fc6bc2a3325fd35e5ccc9c34b79 (diff) |
correct writing of phone info
git-svn-id: http://svn.miranda-ng.org/main/trunk@6568 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index d4743493dc..5f7e51b977 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -243,7 +243,7 @@ void CVkProto::OnReceiveUserInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe setTString(hContact, "FirstName", szValue);
tszNick.Append(szValue);
tszNick.AppendChar(' ');
- }
+ }
if (szValue = json_as_string( json_get(pRecord, "last_name"))) {
setTString(hContact, "LastName", szValue);
@@ -263,7 +263,7 @@ void CVkProto::OnReceiveUserInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe setWord(hContact, "BirthYear", y);
}
}
-
+
if (szValue = json_as_string( json_get(pRecord, "photo_medium")))
setTString(hContact, "AvatarUrl", szValue);
}
@@ -323,9 +323,9 @@ void CVkProto::OnReceiveFriends(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq setWord(hContact, "Status", (json_as_int( json_get(pInfo, "online")) == 0) ? ID_STATUS_OFFLINE : ID_STATUS_ONLINE);
szValue = json_as_string( json_get(pInfo, "mobile_phone"));
- if (szValue && *szValue) setTString(hContact, "Phone0", szValue);
+ if (szValue && *szValue) setTString(hContact, "Cellular", szValue);
szValue = json_as_string( json_get(pInfo, "home_phone"));
- if (szValue && *szValue) setTString(hContact, "Phone1", szValue);
+ if (szValue && *szValue) setTString(hContact, "Phone", szValue);
}
}
|