summaryrefslogtreecommitdiff
path: root/plugins/SMS/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-12 20:12:53 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-12 20:12:53 +0300
commit488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (patch)
tree96b0db981b4f5054f24d484902b597ba7da1c1a5 /plugins/SMS/src
parent9b35784c5042984fbb60785f0a4a41a64af545f6 (diff)
end of ME_OPT_INITIALISE related zoo in another plugins
Diffstat (limited to 'plugins/SMS/src')
-rw-r--r--plugins/SMS/src/SMS_svc.cpp6
-rw-r--r--plugins/SMS/src/main.cpp5
2 files changed, 5 insertions, 6 deletions
diff --git a/plugins/SMS/src/SMS_svc.cpp b/plugins/SMS/src/SMS_svc.cpp
index 803ef766af..9bd92063ec 100644
--- a/plugins/SMS/src/SMS_svc.cpp
+++ b/plugins/SMS/src/SMS_svc.cpp
@@ -18,12 +18,6 @@ int LoadServices(void)
int LoadModules(void)
{
- HookEvent(ME_OPT_INITIALISE, OptInitialise);
- HookEvent(ME_CLIST_PREBUILDCONTACTMENU, SmsRebuildContactMenu);
- HookEvent(ME_PROTO_ACK, handleAckSMS);
- HookEvent(ME_DB_EVENT_ADDED, handleNewMessage);
- HookEvent(ME_PROTO_ACCLISTCHANGED, RefreshAccountList);
-
char szServiceFunction[MAX_PATH];
mir_snprintf(szServiceFunction, "%s%s", MODULENAME, SMS_SEND);
diff --git a/plugins/SMS/src/main.cpp b/plugins/SMS/src/main.cpp
index 426c714da3..5002b87b3d 100644
--- a/plugins/SMS/src/main.cpp
+++ b/plugins/SMS/src/main.cpp
@@ -114,6 +114,11 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID)
int CMPlugin::Load()
{
+ HookEvent(ME_CLIST_PREBUILDCONTACTMENU, SmsRebuildContactMenu);
+ HookEvent(ME_DB_EVENT_ADDED, handleNewMessage);
+ HookEvent(ME_OPT_INITIALISE, OptInitialise);
+ HookEvent(ME_PROTO_ACK, handleAckSMS);
+ HookEvent(ME_PROTO_ACCLISTCHANGED, RefreshAccountList);
HookEvent(ME_SYSTEM_MODULESLOADED,OnModulesLoaded);
HookEvent(ME_SYSTEM_PRESHUTDOWN,OnPreShutdown);