summaryrefslogtreecommitdiff
path: root/plugins/StopSpamMod/src/init.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2017-09-18 19:03:33 +0300
committerKirill Volinsky <mataes2007@gmail.com>2017-09-18 19:03:33 +0300
commit07e552f62b366f8ec30551ad9826d8954124b696 (patch)
treee7ba0a6577df0a438c4c3ae16f101b2510b19588 /plugins/StopSpamMod/src/init.cpp
parent3e9e96f6718b13c069138fb40f24f065ac03c6b7 (diff)
StopSpamMod: removed template for hooking events
Diffstat (limited to 'plugins/StopSpamMod/src/init.cpp')
-rwxr-xr-xplugins/StopSpamMod/src/init.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/StopSpamMod/src/init.cpp b/plugins/StopSpamMod/src/init.cpp
index 29f753168f..aeac374fd9 100755
--- a/plugins/StopSpamMod/src/init.cpp
+++ b/plugins/StopSpamMod/src/init.cpp
@@ -17,6 +17,8 @@
#include "stdafx.h"
+HINSTANCE hInst;
+
BOOL gbDosServiceExist = 0;
BOOL gbVarsServiceExist = 0;
@@ -145,6 +147,10 @@ extern "C" int __declspec(dllexport) Load()
CreateServiceFunction("/RemoveTmp", (MIRANDASERVICE)RemoveTmp);
HookEvent(ME_SYSTEM_MODULESLOADED, OnSystemModulesLoaded);
+ HookEvent(ME_DB_EVENT_ADDED, OnDbEventAdded);
+ HookEvent(ME_DB_EVENT_FILTER_ADD, OnDbEventFilterAdd);
+ HookEvent(ME_DB_CONTACT_SETTINGCHANGED, OnDbContactSettingChanged);
+ HookEvent(ME_OPT_INITIALISE, OnOptInit);
CMenuItem mi;
SET_UID(mi, 0x60ce7660, 0x5a5, 0x4234, 0x99, 0xb6, 0x55, 0x21, 0xed, 0xa0, 0xb8, 0x32);
@@ -155,12 +161,10 @@ extern "C" int __declspec(dllexport) Load()
Menu_AddMainMenuItem(&mi);
- miranda::EventHooker::HookAll();
return 0;
}
extern "C" int __declspec(dllexport) Unload(void)
{
- miranda::EventHooker::UnhookAll();
return 0;
}