From db8d126a7b973b38c52f646748c866ba9fe32eb3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 17 Jan 2019 18:27:16 +0300 Subject: related to #1773 - messageState support for ICQ-WIM --- protocols/ICQ-WIM/src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'protocols/ICQ-WIM/src/main.cpp') diff --git a/protocols/ICQ-WIM/src/main.cpp b/protocols/ICQ-WIM/src/main.cpp index 0f1888952d..3de14ce81f 100644 --- a/protocols/ICQ-WIM/src/main.cpp +++ b/protocols/ICQ-WIM/src/main.cpp @@ -20,7 +20,7 @@ #include "stdafx.h" -bool g_bPopupService; +bool g_bPopupService, g_bMessageState; HWND g_hwndHeartbeat; @@ -57,6 +57,7 @@ CMPlugin g_plugin; int ModuleLoad(WPARAM, LPARAM) { g_bPopupService = ServiceExists(MS_POPUP_ADDPOPUPT); + g_bMessageState = ServiceExists(MS_MESSAGESTATE_UPDATE); return 0; } @@ -66,7 +67,7 @@ int CMPlugin::Load() HookEvent(ME_SYSTEM_MODULELOAD, ModuleLoad); HookEvent(ME_SYSTEM_MODULEUNLOAD, ModuleLoad); - ModuleLoad(0, 0); + HookEvent(ME_SYSTEM_MODULESLOADED, ModuleLoad); return 0; }; -- cgit v1.2.3