summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-06-05 04:24:12 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-06-05 04:24:12 +0000
commit894d04d09e39156eb2264fb49f2b24035bb16d09 (patch)
treed70302329961ead18e53462ecf09619ef4549b09 /protocols/VKontakte/src
parentefd438ad7b533ba2adb4f22a1cb358ee449db825 (diff)
VKontakte: status fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@14005 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index c5e2977c73..ac81248d63 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -294,7 +294,7 @@ MCONTACT CVkProto::SetContactInfo(const JSONNode &jnItem, bool flag, bool self)
ReloadAvatarInfo(hContact);
}
- int iNewStatus = (jnItem["online"] == 0) ? ID_STATUS_OFFLINE : ID_STATUS_ONLINE;
+ int iNewStatus = (jnItem["online"].as_int() == 0) ? ID_STATUS_OFFLINE : ID_STATUS_ONLINE;
if (getWord(hContact, "Status", ID_STATUS_OFFLINE) != iNewStatus)
setWord(hContact, "Status", iNewStatus);