mirror of
https://github.com/anope/anope.git
synced 2026-07-09 05:23:13 +02:00
Rework SendNumericInternal to be usable with Uplink::Send.
This commit is contained in:
@@ -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> ¶ms) 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
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
/* Make myself known to myself in the serverlist */
|
||||
SendServer(Me);
|
||||
/* finish the enhanced server handshake and register the connection */
|
||||
this->SendNumeric(376, "*", ":End of MOTD command");
|
||||
this->SendNumeric(376, "*", "End of MOTD command");
|
||||
}
|
||||
|
||||
void SendForceNickChange(User *u, const Anope::string &newnick, time_t when) override
|
||||
|
||||
Reference in New Issue
Block a user