summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-10-22 10:15:25 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-10-22 10:15:25 +0000
commitc912ccc737afe8e4b2038b632cd9bb1f67bcf5e7 (patch)
treedc41c222c8e3399a482312e0566cf0c7aabf4e95 /protocols
parent537cc1ec9cdd43257b19385acacd05cdace3ac1a (diff)
VKontakte:
ListeningTo contactlist icon support git-svn-id: http://svn.miranda-ng.org/main/trunk@10844 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index 59b96d9d5f..78b5e6b9e5 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -336,8 +336,13 @@ MCONTACT CVkProto::SetContactInfo(JSONNODE* pItem, bool flag, bool self)
tszValue = json_as_string(json_get(pItem, "status"));
CMString tszOldStatus(db_get_tsa(hContact, hContact ? "CList" : m_szModuleName, "StatusMsg"));
- if (tszValue != tszOldStatus)
+ if (tszValue != tszOldStatus){
db_set_ts(hContact, hContact ? "CList" : m_szModuleName, "StatusMsg", tszValue.GetBuffer());
+ if (json_get(pItem, "status_audio"))
+ db_set_ts(hContact, m_szModuleName, "ListeningTo", tszValue.GetBuffer());
+ else
+ db_unset(hContact, m_szModuleName, "ListeningTo");
+ }
if ((hContact == NULL) && m_bOne){
setTString("OldStatusMsg", db_get_tsa(0, m_szModuleName, "StatusMsg"));