diff options
Diffstat (limited to 'plugins/MessageState/src/main.cpp')
-rw-r--r-- | plugins/MessageState/src/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/MessageState/src/main.cpp b/plugins/MessageState/src/main.cpp index 6b6321a29f..b2caea0d74 100644 --- a/plugins/MessageState/src/main.cpp +++ b/plugins/MessageState/src/main.cpp @@ -2,6 +2,7 @@ int hLangpack;
HINSTANCE g_hInst;
+HANDLE hDummyService;
PLUGININFOEX pluginInfo =
{
@@ -34,11 +35,16 @@ extern "C" int __declspec(dllexport) Load(void) {
mir_getLP(&pluginInfo);
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
+
+ hDummyService = CreateServiceFunction(MODULENAME "/DummyService", DummyService);
+
return 0;
}
extern "C" int __declspec(dllexport) Unload(void)
{
- UnInitModule();
+ if (hDummyService)
+ DestroyServiceFunction(hDummyService);
+
return 0;
}
\ No newline at end of file |