summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-06-24 14:46:41 +0100
committerSadie Powell <sadie@witchery.services>2024-06-24 14:46:41 +0100
commit01e0cf4868a96e452712c06620c9307d34c89210 (patch)
tree2cca6d11e04c847aeac6ba7c099249ae1a3f4702 /src
parent693eeed762eac490b1289f8f4428ff0b5bbf1672 (diff)
Add support for sending tag messages.
Diffstat (limited to 'src')
-rw-r--r--src/protocol.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 1c5edd2a4..ad2bef770 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -145,6 +145,12 @@ void IRCDProto::SendPrivmsg(const MessageSource &source, const Anope::string &de
Uplink::Send(tags, source, "PRIVMSG", dest, msg.empty() ? " " : msg);
}
+void IRCDProto::SendTagmsg(const MessageSource &source, const Anope::string &dest, const Anope::map<Anope::string> &tags)
+{
+ if (CanTagMessage)
+ Uplink::Send(tags, source, "TAGMSG", dest);
+}
+
void IRCDProto::SendQuit(User *u, const Anope::string &buf)
{
if (!buf.empty())