mirror of
https://github.com/anope/anope.git
synced 2026-06-30 13:26:38 +02:00
Implement support for the ratified +reply tag.
This commit is contained in:
+2
-1
@@ -351,9 +351,10 @@ void User::SendMessage(BotInfo *source, const Anope::string &msg)
|
||||
|
||||
void User::SendMessage(CommandSource &source, const Anope::string &msg)
|
||||
{
|
||||
// TODO: remove support for the draft tag when other software catches up.
|
||||
Anope::map<Anope::string> tags;
|
||||
if (!source.msgid.empty())
|
||||
tags["+draft/reply"] = source.msgid;
|
||||
tags["+draft/reply"] = tags["+reply"] = source.msgid;
|
||||
|
||||
SendMessageInternal(*source.service, this, msg, tags);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user