diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-15 12:32:32 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-15 12:32:32 +0000 |
commit | a84efa4b372d9c2ee1b636815f343b5a92ab1c64 (patch) | |
tree | 108ddb05363f18baaf30f4421e46cbcbd0f176f6 | |
parent | da0aa61b3d930edc7b45328a4c6face0e95f2931 (diff) |
Vkontakte: ooops
git-svn-id: http://svn.miranda-ng.org/main/trunk@10455 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index d5126a2738..a67e88f833 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -335,9 +335,10 @@ void CVkProto::OnReceiveUserInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe szValue = json_as_string(json_get(pRecord, "status"));
if (szValue && *szValue) {
ptrT tszOldStatus(db_get_tsa(hContact, "CList", "StatusMsg"));
- if (tszOldStatus)
- if (_tcscmp(tszOldStatus, szValue))
- db_set_ts(hContact, "CList", "StatusMsg", szValue);
+ if (!tszOldStatus)
+ db_set_ts(hContact, "CList", "StatusMsg", szValue);
+ else if (_tcscmp(tszOldStatus, szValue))
+ db_set_ts(hContact, "CList", "StatusMsg", szValue);
}
szValue = json_as_string(json_get(pRecord, "about"));
@@ -428,9 +429,10 @@ void CVkProto::OnReceiveFriends(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq szValue = json_as_string(json_get(pInfo, "status"));
if (szValue && *szValue) {
ptrT tszOldStatus(db_get_tsa(hContact, "CList", "StatusMsg"));
- if (tszOldStatus)
- if (_tcscmp(tszOldStatus, szValue))
- db_set_ts(hContact, "CList", "StatusMsg", szValue);
+ if (!tszOldStatus)
+ db_set_ts(hContact, "CList", "StatusMsg", szValue);
+ else if (_tcscmp(tszOldStatus, szValue))
+ db_set_ts(hContact, "CList", "StatusMsg", szValue);
}
szValue = json_as_string(json_get(pInfo, "about"));
|