diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-17 18:27:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-17 18:27:16 +0300 |
commit | db8d126a7b973b38c52f646748c866ba9fe32eb3 (patch) | |
tree | baeb00f90110db994d6a95a32460f4b4eab000e7 /protocols/ICQ-WIM/src/main.cpp | |
parent | 288bda66073faeaa0f329d95b26482a9d2868c34 (diff) |
related to #1773 - messageState support for ICQ-WIM
Diffstat (limited to 'protocols/ICQ-WIM/src/main.cpp')
-rw-r--r-- | protocols/ICQ-WIM/src/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; }; |