diff options
| author | Sadie Powell <sadie@witchery.services> | 2025-03-09 18:51:03 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2025-03-09 18:51:03 +0000 |
| commit | 6d7fe69cdf9ff1b8fcb149734753c2800894b68e (patch) | |
| tree | a35c951fa0e129e401081a25dc8253ff77b49de0 /modules/protocol | |
| parent | 314ef609001bd511c7a7ef243191bcd471bffa1c (diff) | |
Add support for oper-only quit messages.
This currently only works on InspIRCd but I believe that other
servers also support this.
Diffstat (limited to 'modules/protocol')
| -rw-r--r-- | modules/protocol/inspircd.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/protocol/inspircd.cpp b/modules/protocol/inspircd.cpp index e4811f428..fdc78558d 100644 --- a/modules/protocol/inspircd.cpp +++ b/modules/protocol/inspircd.cpp @@ -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); |
