summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd
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/SmileyAdd
parent54d93d2c1ae60d2205476cc08ad356fc7bbd13e0 (diff)
ME_MSG_TOOLBARLOADED is hooked everywhere as a temporary event
Diffstat (limited to 'plugins/SmileyAdd')
-rw-r--r--plugins/SmileyAdd/src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SmileyAdd/src/main.cpp b/plugins/SmileyAdd/src/main.cpp
index 38d1380068..81c3c9bb19 100644
--- a/plugins/SmileyAdd/src/main.cpp
+++ b/plugins/SmileyAdd/src/main.cpp
@@ -113,9 +113,9 @@ extern "C" __declspec(dllexport) int Load(void)
HookEvent(ME_PROTO_ACCLISTCHANGED, AccountListChanged);
HookEvent(ME_DB_CONTACT_SETTINGCHANGED, DbSettingChanged);
HookEvent(ME_COLOUR_RELOAD, ReloadColour);
-
HookEvent(ME_MSG_BUTTONPRESSED, SmileyButtonPressed);
- HookEvent(ME_MSG_TOOLBARLOADED, SmileyButtonCreate);
+
+ HookTemporaryEvent(ME_MSG_TOOLBARLOADED, SmileyButtonCreate);
// create the smiley services
CreateServiceFunction(MS_SMILEYADD_REPLACESMILEYS, ReplaceSmileysCommand);