summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-24 20:12:23 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-24 20:12:23 +0300
commit76cb1ae4c9624901458aaeb3243725d74fa9233f (patch)
tree62d9d9606a14f451be53fe7252603feb11c3f941
parent9b01c1c027483714bf0ec11af8f74a929e98d67f (diff)
ME_IDLE_CHANGED to be hooked afterwards
-rw-r--r--src/core/stdautoaway/src/autoaway.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/stdautoaway/src/autoaway.cpp b/src/core/stdautoaway/src/autoaway.cpp
index 4014379d9f..22196ff358 100644
--- a/src/core/stdautoaway/src/autoaway.cpp
+++ b/src/core/stdautoaway/src/autoaway.cpp
@@ -97,9 +97,15 @@ static int AutoAwayEvent(WPARAM, LPARAM lParam)
return 0;
}
+static int OnModulesLoaded(WPARAM, LPARAM)
+{
+ HookEvent(ME_IDLE_CHANGED, AutoAwayEvent);
+ return 0;
+}
+
int LoadAutoAwayModule()
{
+ HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
HookEvent(ME_SKIN_PLAYINGSOUND, AutoAwaySound);
- HookEvent(ME_IDLE_CHANGED, AutoAwayEvent);
return 0;
}