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

Rework SendNumericInternal to be usable with Uplink::Send.

This commit is contained in:
Sadie Powell
2024-02-21 19:43:21 +00:00
parent 7a6979c814
commit 9b77fdf5b6
5 changed files with 39 additions and 39 deletions
+4 -2
View File
@@ -296,9 +296,11 @@ public:
SendAddLine("G", x->GetUser() + "@" + x->GetHost(), timeleft, x->by, x->GetReason());
}
void SendNumericInternal(int numeric, const Anope::string &dest, const Anope::string &buf) override
void SendNumericInternal(int numeric, const Anope::string &dest, const std::vector<Anope::string> &params) override
{
UplinkSocket::Message() << "NUM " << Me->GetSID() << " " << dest << " " << numeric << " " << buf;
auto newparams = params;
newparams.insert(newparams.begin(), { Me->GetSID(), dest, numeric });
Uplink::SendInternal({}, Me, numeric, newparams);
}
void SendModeInternal(const MessageSource &source, const Channel *dest, const Anope::string &buf) override