diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-09-16 14:20:47 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-09-16 14:20:47 +0000 |
commit | 883c7cb1366289bc816b8583f78d2fec88f5bda0 (patch) | |
tree | e701cb1d51c64a904c5a98f6bb8bbdf6eb03123c /protocols | |
parent | dfa2c32267d9a404fb4bb9a324f83e196624671f (diff) |
VKontakte: fix(?) user status processing
git-svn-id: http://svn.miranda-ng.org/main/trunk@15363 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 7b257053f4..1817ddc68a 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -410,7 +410,7 @@ void CVkProto::RetrieveUsersInfo(bool flag) if (flag)
codeformat += CMString("var US=API.users.get({\"user_ids\":userIDs,\"fields\":\"%s\",\"name_case\":\"nom\"});"
- "var res=[];var index=US.length;while(index >0){index=index-1;if(US[index].online==1){res.unshift(US[index]);};};"
+ "var res=[];var index=US.length;while(index>0){index=index-1;if(US[index].online!=0){res.unshift(US[index]);};};"
"return{\"freeoffline\":1,\"users\":res,\"requests\":API.friends.getRequests({\"extended\":0,\"need_mutual\":0,\"out\":0})};");
else
codeformat += CMString("var res=API.users.get({\"user_ids\":userIDs,\"fields\":\"%s\",\"name_case\":\"nom\"});"
|