diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-12 20:12:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-12 20:12:53 +0300 |
commit | 488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (patch) | |
tree | 96b0db981b4f5054f24d484902b597ba7da1c1a5 /plugins/Spamotron/src | |
parent | 9b35784c5042984fbb60785f0a4a41a64af545f6 (diff) |
end of ME_OPT_INITIALISE related zoo in another plugins
Diffstat (limited to 'plugins/Spamotron/src')
-rw-r--r-- | plugins/Spamotron/src/spamotron.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/plugins/Spamotron/src/spamotron.cpp b/plugins/Spamotron/src/spamotron.cpp index 5c48d8a3f5..cb0fb0874e 100644 --- a/plugins/Spamotron/src/spamotron.cpp +++ b/plugins/Spamotron/src/spamotron.cpp @@ -1,6 +1,5 @@ #include "stdafx.h"
-HANDLE hOptInitialize, hModulesLoaded, hDBContactAdded, hDBEventAdded, hDBEventFilterAdd;
time_t last_queue_check = 0;
CMPlugin g_plugin;
@@ -28,12 +27,6 @@ CMPlugin::CMPlugin() : extern int OnOptInitialize(WPARAM wParam, LPARAM lParam);
-int OnModulesLoaded(WPARAM, LPARAM)
-{
- hOptInitialize = HookEvent(ME_OPT_INITIALISE, OnOptInitialize);
- return 0;
-}
-
int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam)
{
MCONTACT hContact = wParam;
@@ -515,8 +508,8 @@ int CMPlugin::Load() }
}
- hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
- hDBEventFilterAdd = HookEvent(ME_DB_EVENT_FILTER_ADD, OnDBEventFilterAdd);
+ HookEvent(ME_DB_EVENT_FILTER_ADD, OnDBEventFilterAdd);
+ HookEvent(ME_OPT_INITIALISE, OnOptInitialize);
return 0;
}
@@ -525,10 +518,5 @@ int CMPlugin::Load() int CMPlugin::Unload()
{
RemoveNotOnListSettings();
- UnhookEvent(hOptInitialize);
- UnhookEvent(hModulesLoaded);
- UnhookEvent(hDBContactAdded);
- UnhookEvent(hDBEventAdded);
- UnhookEvent(hDBEventFilterAdd);
return 0;
}
|