diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-24 20:12:23 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-24 20:12:23 +0300 |
commit | 76cb1ae4c9624901458aaeb3243725d74fa9233f (patch) | |
tree | 62d9d9606a14f451be53fe7252603feb11c3f941 | |
parent | 9b01c1c027483714bf0ec11af8f74a929e98d67f (diff) |
ME_IDLE_CHANGED to be hooked afterwards
-rw-r--r-- | src/core/stdautoaway/src/autoaway.cpp | 8 |
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;
}
|