From a5cb6b99fb781d4b8e63f98d0644e02f75e54608 Mon Sep 17 00:00:00 2001 From: Matt Schatz Date: Tue, 31 Mar 2020 08:15:47 -0600 Subject: Add back the prefix on a server target message. The prefix is dropped when building the message. We add it back here so that the remote servers can recognize it as a server target. --- src/modules/m_spanningtree/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index b688aed9f..5ed66b805 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -420,7 +420,7 @@ void ModuleSpanningTree::OnUserPostMessage(User* user, const MessageTarget& targ const std::string* serverglob = target.Get(); CmdBuilder par(user, message_type); par.push_tags(details.tags_out); - par.push(*serverglob); + par.push(std::string("$") + *serverglob); par.push_last(details.text); par.Broadcast(); break; @@ -457,7 +457,7 @@ void ModuleSpanningTree::OnUserPostTagMessage(User* user, const MessageTarget& t const std::string* serverglob = target.Get(); CmdBuilder par(user, "TAGMSG"); par.push_tags(details.tags_out); - par.push(*serverglob); + par.push(std::string("$") + *serverglob); par.Broadcast(); break; } -- cgit v1.2.3