1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 09:16:38 +02:00

Add the IRCv3 reply tag to messages sent as responses to a user.

This commit is contained in:
Sadie Powell
2024-02-22 13:23:18 +00:00
parent f93d9e7698
commit a75afb597b
4 changed files with 32 additions and 1 deletions
+6 -1
View File
@@ -17,6 +17,11 @@
#include "regchannel.h"
#include "channels.h"
void CommandReply::SendMessage(CommandSource& source, const Anope::string &msg)
{
SendMessage(source.service, msg);
}
CommandSource::CommandSource(const Anope::string &n, User *user, NickCore *core, CommandReply *r, BotInfo *bi, const Anope::string &m)
: nick(n)
, u(user)
@@ -119,7 +124,7 @@ void CommandSource::Reply(const Anope::string &message)
sepstream sep(translated_message, '\n', true);
Anope::string tok;
while (sep.GetToken(tok))
this->reply->SendMessage(this->service, tok);
this->reply->SendMessage(*this, tok);
}
Command::Command(Module *o, const Anope::string &sname, size_t minparams, size_t maxparams) : Service(o, "Command", sname), max_params(maxparams), min_params(minparams), module(o)