1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 04:06:38 +02:00

Add ProtocolException and use it to send fatal errors.

This commit is contained in:
Sadie Powell
2024-03-12 00:00:36 +00:00
parent a15f165a1d
commit 1538909ac0
4 changed files with 39 additions and 31 deletions
+5
View File
@@ -86,6 +86,11 @@ Anope::string IRCDProto::SID_Retrieve()
return current_sid;
}
void IRCDProto::SendError(const Anope::string &reason)
{
Uplink::Send("ERROR", reason);
}
void IRCDProto::SendKill(const MessageSource &source, const Anope::string &target, const Anope::string &reason)
{
Uplink::Send(source, "KILL", target, reason);