summaryrefslogtreecommitdiff
path: root/plugins/MessageState/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MessageState/src/main.cpp')
-rw-r--r--plugins/MessageState/src/main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/MessageState/src/main.cpp b/plugins/MessageState/src/main.cpp
index f9091a9722..ce6b830092 100644
--- a/plugins/MessageState/src/main.cpp
+++ b/plugins/MessageState/src/main.cpp
@@ -35,16 +35,13 @@ extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
-
- hUpdateService = CreateServiceFunction(MS_MESSAGESTATE_UPDATE, UpdateService);
-
+ InitServices();
return 0;
}
extern "C" int __declspec(dllexport) Unload(void)
{
- if (hUpdateService)
- DestroyServiceFunction(hUpdateService);
+ DestroyServices();
return 0;
} \ No newline at end of file