diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-17 17:37:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-17 17:37:39 +0300 |
commit | b68362e4ca9a176bde960f20dce76822e0a5dd0e (patch) | |
tree | 9985b477a54aa7d16f782f408cf74e828b8a3fed /protocols/FacebookRM/src/main.cpp | |
parent | 7623a366aeedaffb50057fc7ae01ad47925bb7fd (diff) |
code cleaning
Diffstat (limited to 'protocols/FacebookRM/src/main.cpp')
-rw-r--r-- | protocols/FacebookRM/src/main.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/main.cpp b/protocols/FacebookRM/src/main.cpp index 6503feee49..ec84f62346 100644 --- a/protocols/FacebookRM/src/main.cpp +++ b/protocols/FacebookRM/src/main.cpp @@ -26,6 +26,7 @@ CMPlugin g_plugin; std::string g_strUserAgent;
DWORD g_mirandaVersion;
+bool g_bMessageState;
/////////////////////////////////////////////////////////////////////////////////////////
@@ -56,8 +57,18 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC /////////////////////////////////////////////////////////////////////////////////////////
// Load
+static int OnModuleLoaded(WPARAM, LPARAM)
+{
+ g_bMessageState = ServiceExists(MS_MESSAGESTATE_UPDATE) != 0;
+ return 0;
+}
+
int CMPlugin::Load()
{
+ HookEvent(ME_SYSTEM_MODULELOAD, OnModuleLoaded);
+ HookEvent(ME_SYSTEM_MODULEUNLOAD, OnModuleLoaded);
+ OnModuleLoaded(0, 0);
+
InitIcons();
InitContactMenus();
|