summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/TabSRMM/src/msgs.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index 5a6ec5779f..34c49be384 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -201,6 +201,13 @@ static INT_PTR GetWindowAPI(WPARAM, LPARAM)
return PLUGIN_MAKE_VERSION(0, 0, 0, 2);
}
+
+static INT_PTR BroadcastMessage(WPARAM, LPARAM lParam)
+{
+ M.BroadcastMessage((UINT)lParam, 0, 0);
+ return 0;
+}
+
/////////////////////////////////////////////////////////////////////////////////////////
// service function finds a message session
// wParam = contact handle for which we want the window handle
@@ -931,6 +938,8 @@ static void TSAPI InitAPI()
CreateServiceFunction(MS_MSG_MOD_GETWINDOWFLAGS, GetMessageWindowFlags);
CreateServiceFunction(MS_MSG_MOD_MESSAGEDIALOGOPENED, MessageWindowOpened);
+ CreateServiceFunction("SRMsg/BroadcastMessage", BroadcastMessage);
+
SI_InitStatusIcons();
CB_InitCustomButtons();