From 22dc33de9f0c3338b85b8d8bccb407eb93ada75f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 9 Apr 2026 12:01:16 +0100 Subject: [PATCH] Add support for the ratified channel-context tag. --- src/protocol.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/protocol.cpp b/src/protocol.cpp index efca42405..ee7a9eeee 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -395,6 +395,7 @@ Anope::string IRCDProto::NormalizeMask(const Anope::string &mask) void IRCDProto::SendContextNotice(BotInfo *bi, User *target, Channel *context, const Anope::string &msg, const Anope::map &tags) { auto newtags = tags; + newtags["+channel-context"] = context->name; newtags["+draft/channel-context"] = context->name; IRCD->SendNotice(bi, target->GetUID(), Anope::Format("[%s] %s", context->name.c_str(), msg.c_str()), newtags); } @@ -402,6 +403,7 @@ void IRCDProto::SendContextNotice(BotInfo *bi, User *target, Channel *context, c void IRCDProto::SendContextPrivmsg(BotInfo *bi, User *target, Channel *context, const Anope::string &msg, const Anope::map &tags) { auto newtags = tags; + newtags["+channel-context"] = context->name; newtags["+draft/channel-context"] = context->name; IRCD->SendPrivmsg(bi, target->GetUID(), Anope::Format("[%s] %s", context->name.c_str(), msg.c_str()), newtags); }