summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/srmm_toolbar.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mir_app/src/srmm_toolbar.cpp b/src/mir_app/src/srmm_toolbar.cpp
index 8a23b50565..95f4b0205e 100644
--- a/src/mir_app/src/srmm_toolbar.cpp
+++ b/src/mir_app/src/srmm_toolbar.cpp
@@ -773,6 +773,12 @@ void KillModuleToolbarIcons(int _hLang)
}
}
+static INT_PTR BroadcastMessage(WPARAM, LPARAM lParam)
+{
+ Srmm_Broadcast((UINT)lParam, 0, 0);
+ return 0;
+}
+
static int SrmmModulesLoaded(WPARAM, LPARAM)
{
HookEvent(ME_OPT_INITIALISE, SrmmOptionsInit);
@@ -796,6 +802,8 @@ static int ConvertToolbarData(const char *szSetting, LPARAM)
void LoadSrmmToolbarModule()
{
+ CreateServiceFunction("SRMsg/BroadcastMessage", BroadcastMessage);
+
HookEvent(ME_SYSTEM_MODULESLOADED, SrmmModulesLoaded);
Miranda_WaitOnHandle(SrmmLoadToolbar);