summaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-12 00:00:36 +0000
committerSadie Powell <sadie@witchery.services>2024-03-12 00:17:49 +0000
commit1538909ac09a0e84269e36a08da5ae9fce92e8f3 (patch)
tree97a986b375f6e1fbfa0df05d017357efdfc4ced1 /src/protocol.cpp
parenta15f165a1d2d71c3db54d57779bec34914cbc171 (diff)
Add ProtocolException and use it to send fatal errors.
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 4893173af..5699a2d48 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -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);