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