summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-10-11 13:40:24 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-10-11 13:40:24 +0000
commite8cfaff4970726c7f15c0241e0c6b210ead2f0bd (patch)
tree6ddda89e8756ba7af349a46c9a6f689b68cfb8d9 /protocols/VKontakte/src/vk_proto.cpp
parent16836ea77582da49b82c9b95332762f7135c76ea (diff)
VKontakte:
fix for leave chat menuitem on clist contact’s menu fix for mark messages as read for chat messages git-svn-id: http://svn.miranda-ng.org/main/trunk@10764 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r--protocols/VKontakte/src/vk_proto.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp
index 910c79b0f4..f1706d2659 100644
--- a/protocols/VKontakte/src/vk_proto.cpp
+++ b/protocols/VKontakte/src/vk_proto.cpp
@@ -102,9 +102,10 @@ int CVkProto::OnModulesLoaded(WPARAM wParam, LPARAM lParam)
gcr.nColors = SIZEOF(sttColors);
gcr.pColors = sttColors;
CallServiceSync(MS_GC_REGISTER, NULL, (LPARAM)&gcr);
-
+ CreateProtoService(PS_LEAVECHAT, &CVkProto::OnLeaveChat);
HookProtoEvent(ME_GC_EVENT, &CVkProto::OnChatEvent);
HookProtoEvent(ME_GC_BUILDMENU, &CVkProto::OnGcMenuHook);
+ // Other hooks
HookProtoEvent(ME_MSG_WINDOWEVENT, &CVkProto::OnProcessSrmmEvent);
HookProtoEvent(ME_DB_EVENT_MARKED_READ, &CVkProto::OnDbEventRead);