1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 00:23:12 +02:00

Add support for oper-only quit messages.

This currently only works on InspIRCd but I believe that other
servers also support this.
This commit is contained in:
Sadie Powell
2025-03-09 18:51:03 +00:00
parent 314ef60900
commit 6d7fe69cdf
6 changed files with 14 additions and 6 deletions
+8
View File
@@ -255,6 +255,14 @@ public:
Uplink::Send(user, "SVSCMODE", u->GetUID(), c->name, 'b');
}
void SendQuit(User *u, const Anope::string &buf, const Anope::string &operbuf)
{
if (!operbuf.empty())
Uplink::Send("METADATA", u->GetUID(), "operquit", operbuf);
IRCDProto::SendQuit(u, buf, operbuf);
}
void SendPong(const Anope::string &servname, const Anope::string &who) override
{
Server *serv = servname.empty() ? NULL : Server::Find(servname);