diff options
author | Kirill Volinsky <KVolinsky@COMMON.EU.CORP.TOYOTA.com> | 2017-09-18 18:00:12 +0300 |
---|---|---|
committer | Kirill Volinsky <KVolinsky@COMMON.EU.CORP.TOYOTA.com> | 2017-09-18 18:00:12 +0300 |
commit | b5de62080a2384e9f66d7bafbf971aa5b4b7c0c1 (patch) | |
tree | 23cdae6f0973126efbedd60b8840867e7b6501ba /plugins/StopSpamPlus/src/stopspam.cpp | |
parent | 1836e8aa8a20b7339fd27c67acef67b7eb446da4 (diff) |
StopSpamPlus: removed template for hooking events
Diffstat (limited to 'plugins/StopSpamPlus/src/stopspam.cpp')
-rw-r--r-- | plugins/StopSpamPlus/src/stopspam.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/StopSpamPlus/src/stopspam.cpp b/plugins/StopSpamPlus/src/stopspam.cpp index 9992a8915f..3409b6d8e8 100644 --- a/plugins/StopSpamPlus/src/stopspam.cpp +++ b/plugins/StopSpamPlus/src/stopspam.cpp @@ -44,7 +44,11 @@ extern "C" int __declspec(dllexport) Load(void) CreateServiceFunction(MS_STOPSPAM_CONTACTPASSED, IsContactPassed);
HookEvent(ME_SYSTEM_MODULESLOADED, OnSystemModulesLoaded);
-
+ HookEvent(ME_DB_EVENT_ADDED, OnDbEventAdded);
+ HookEvent(ME_DB_EVENT_FILTER_ADD, OnDbEventFilterAdd);
+ HookEvent(ME_OPT_INITIALISE, OnOptInit);
+ HookEvent(ME_DB_CONTACT_SETTINGCHANGED, OnDbContactSettingchanged);
+
// Add deliting temporary contacts
CreateServiceFunction(MS_STOPSPAM_REMTEMPCONTACTS, RemoveTempContacts);
@@ -57,14 +61,11 @@ extern "C" int __declspec(dllexport) Load(void) mi.pszService = pluginName"/RemoveTempContacts";
Menu_AddMainMenuItem(&mi);
- miranda::EventHooker::HookAll();
return 0;
}
extern "C" int __declspec(dllexport) Unload(void)
{
- miranda::EventHooker::UnhookAll();
-
delete plSets;
return 0;
}
\ No newline at end of file |