summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_thread.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-10-16 04:15:50 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-10-16 04:15:50 +0000
commitf71c05fadaa38b0719f75d8ba5fc26ea230b478e (patch)
treebbd5fc89fef6493aeada49c20ea04c6c93991aae /protocols/VKontakte/src/vk_thread.cpp
parent52c089ce70ecf928b51369ad339bcd8d3576ccbe (diff)
VKontakte:
fix for kick from chat version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@10794 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index d0dacb36df..4089e27ed0 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -575,8 +575,8 @@ void CVkProto::OnReceiveMessages(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe
if (chat_id != 0) {
CMString action_chat = json_as_string(json_get(pMsg, "action"));
CMString action_mid = json_as_string(json_get(pMsg, "action_mid"));
- if (action_chat == "chat_kick_user")
- KickFromChat(chat_id, _ttoi(action_mid.GetBuffer()), pMsg);
+ if ((action_chat == "chat_kick_user") && (_ttoi(action_mid.GetBuffer()) == m_myUserId))
+ KickFromChat(chat_id, uid, pMsg);
else
AppendChatMessage(chat_id, pMsg, false);
continue;