1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 20:26:39 +02:00

Add support for the ratified channel-context tag.

This commit is contained in:
Sadie Powell
2026-04-09 12:01:16 +01:00
parent 11d6f58a1a
commit 22dc33de9f
+2
View File
@@ -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<Anope::string> &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<Anope::string> &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);
}