diff options
Diffstat (limited to 'plugins/SMS/src')
-rw-r--r-- | plugins/SMS/src/SMS_svc.cpp | 6 | ||||
-rw-r--r-- | plugins/SMS/src/main.cpp | 5 |
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);
|