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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user