summaryrefslogtreecommitdiff
path: root/plugins/StartupSilence/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/StartupSilence/src/main.cpp')
-rw-r--r--plugins/StartupSilence/src/main.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/StartupSilence/src/main.cpp b/plugins/StartupSilence/src/main.cpp
index 7587fc1bda..3fa028d7b1 100644
--- a/plugins/StartupSilence/src/main.cpp
+++ b/plugins/StartupSilence/src/main.cpp
@@ -54,6 +54,8 @@ char PopUpTimeComp[MAX_PATH] = "";
char MenuitemComp[MAX_PATH] = "";
char TTBButtonsComp[MAX_PATH] = "";
+int ModulesLoaded(WPARAM wParam, LPARAM lParam);
+
static LIST<void> ttbButtons(1);
PLUGININFOEX pluginInfo={
@@ -83,7 +85,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
INT_PTR StartupSilence()
{
InitSettings();
- hPopups = HookEvent(ME_POPUP_FILTER, DisablePopup);
+ HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
mir_forkthread((pThreadFunc)AdvSt, NULL);
hSturtupSilenceEnabled = CreateServiceFunction(SS_SERVICE_NAME, SturtupSilenceEnabled);
IsMenu();
@@ -110,6 +112,12 @@ extern "C" __declspec(dllexport) int Unload(void)
return 0;
}
+int ModulesLoaded(WPARAM wParam, LPARAM lParam)
+{
+ hPopups = HookEvent(ME_POPUP_FILTER, DisablePopup);
+ return 0;
+}
+
int DisablePopup(WPARAM wParam, LPARAM lParam)
{
if (timer == 2)