From e3e15b9efbec90cde1bcb74226aaa866820c739e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 28 Jul 2017 23:50:34 +0300 Subject: another missing service restored --- src/mir_app/src/srmm_toolbar.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mir_app') 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); -- cgit v1.2.3