diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-08 12:26:17 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-08 12:26:17 +0300 |
commit | 40a156173e722aaf0c9d454ac573f0a26338e065 (patch) | |
tree | c452b0d9901be98f074a11f4843ce16b4faf0f23 /plugins/Nudge/src/main.cpp | |
parent | 54d93d2c1ae60d2205476cc08ad356fc7bbd13e0 (diff) |
ME_MSG_TOOLBARLOADED is hooked everywhere as a temporary event
Diffstat (limited to 'plugins/Nudge/src/main.cpp')
-rw-r--r-- | plugins/Nudge/src/main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Nudge/src/main.cpp b/plugins/Nudge/src/main.cpp index b710f2868a..a956df53bd 100644 --- a/plugins/Nudge/src/main.cpp +++ b/plugins/Nudge/src/main.cpp @@ -302,10 +302,9 @@ int ModulesLoaded(WPARAM, LPARAM) HookEvent(ME_CLIST_PREBUILDCONTACTMENU, PrebuildContactMenu);
- if (HookEvent(ME_MSG_TOOLBARLOADED, TabsrmmButtonInit)) {
- HookEvent(ME_MSG_BUTTONPRESSED, TabsrmmButtonPressed);
- HookEvent(ME_MSG_WINDOWEVENT, ContactWindowOpen);
- }
+ HookTemporaryEvent(ME_MSG_TOOLBARLOADED, TabsrmmButtonInit);
+ HookEvent(ME_MSG_BUTTONPRESSED, TabsrmmButtonPressed);
+ HookEvent(ME_MSG_WINDOWEVENT, ContactWindowOpen);
return 0;
}
|