summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-09-22 04:24:17 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-09-22 04:24:17 +0000
commitc7a27d3642116b0e37b025dbb3d49dbb9a0f9e38 (patch)
treef5f721808c72793585a74372725deb78cbeb30d2 /protocols/VKontakte
parent64eb4ac0a13029420e1cf6f0a15f91fa4a69f985 (diff)
VKontakte: fix for receive contacts empty statusmsg
git-svn-id: http://svn.miranda-ng.org/main/trunk@10551 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index 72b26f8e61..e29e372bd0 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -340,6 +340,8 @@ void CVkProto::OnReceiveUserInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe
else if (_tcscmp(tszOldStatus, szValue))
db_set_ts(hContact, "CList", "StatusMsg", szValue);
}
+ else
+ db_set_ts(hContact, "CList", "StatusMsg", _T(""));
szValue = json_as_string(json_get(pRecord, "about"));
if (szValue && *szValue)
@@ -438,6 +440,8 @@ void CVkProto::OnReceiveFriends(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq
else if (_tcscmp(tszOldStatus, szValue))
db_set_ts(hContact, "CList", "StatusMsg", szValue);
}
+ else
+ db_set_ts(hContact, "CList", "StatusMsg", _T(""));
szValue = json_as_string(json_get(pInfo, "about"));
if (szValue && *szValue)