summaryrefslogtreecommitdiff
path: root/protocols/VKontakte
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-04-27 14:19:16 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-04-27 14:19:16 +0000
commit27b81252bf10e5281eb900c106c5efe53b4eb4de (patch)
treeb12c11d2cfdc43a9bae9bf348733b9d944fa1748 /protocols/VKontakte
parent2af1c301695590b94b65d92976b89380f77e7999 (diff)
Vkontakte: Add private message for chat user support.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13197 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r--protocols/VKontakte/src/vk_chats.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp
index cf6b2b7461..5258520e49 100644
--- a/protocols/VKontakte/src/vk_chats.cpp
+++ b/protocols/VKontakte/src/vk_chats.cpp
@@ -382,6 +382,19 @@ int CVkProto::OnChatEvent(WPARAM, LPARAM lParam)
Push(pReq);
}
break;
+ case GC_USER_PRIVMESS:
+ {
+ MCONTACT hContact = FindUser(_ttoi(gch->ptszUID));
+ if (hContact == NULL)
+ {
+ hContact = FindUser(_ttoi(gch->ptszUID), true);
+ db_set_b(hContact, "CList", "Hidden", 1);
+ RetrieveUserInfo(_ttoi(gch->ptszUID));
+ db_set_dw(hContact, "Ignore", "Mask1", 0);
+ }
+ CallService(MS_MSG_SENDMESSAGET, hContact, 0);
+ }
+ break;
case GC_USER_LOGMENU:
LogMenuHook(cc, gch);