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