summaryrefslogtreecommitdiff
path: root/plugins/MirOTR
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-08 12:26:17 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-08 12:26:17 +0300
commit40a156173e722aaf0c9d454ac573f0a26338e065 (patch)
treec452b0d9901be98f074a11f4843ce16b4faf0f23 /plugins/MirOTR
parent54d93d2c1ae60d2205476cc08ad356fc7bbd13e0 (diff)
ME_MSG_TOOLBARLOADED is hooked everywhere as a temporary event
Diffstat (limited to 'plugins/MirOTR')
-rw-r--r--plugins/MirOTR/src/svcs_srmm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/MirOTR/src/svcs_srmm.cpp b/plugins/MirOTR/src/svcs_srmm.cpp
index 785556dfcf..f0d23e5357 100644
--- a/plugins/MirOTR/src/svcs_srmm.cpp
+++ b/plugins/MirOTR/src/svcs_srmm.cpp
@@ -138,8 +138,9 @@ void InitSRMM()
OTRButton.pwszTooltip = TranslateT(LANG_OTR_TOOLTIP);
OTRButton.hIcon = IcoLib_GetIconHandle(ICON_NOT_PRIVATE);
- HookEvent(ME_MSG_TOOLBARLOADED, SVC_ButtonsBarLoaded);
HookEvent(ME_MSG_BUTTONPRESSED, SVC_ButtonsBarPressed);
+
+ HookTemporaryEvent(ME_MSG_TOOLBARLOADED, SVC_ButtonsBarLoaded);
}
void DeinitSRMM()