diff options
Diffstat (limited to 'src/core/stdautoaway')
-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;
}
|