From 25bdcfcbc472b8e348aa338d8ebb0a18fd006fff Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 29 Feb 2024 13:07:14 +0000 Subject: Add names for the numerics used by the core. --- src/protocol.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/protocol.cpp') diff --git a/src/protocol.cpp b/src/protocol.cpp index 9c614efbf..6fb7d3398 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -18,6 +18,7 @@ #include "uplink.h" #include "bots.h" #include "channels.h" +#include "numeric.h" IRCDProto *IRCD = NULL; @@ -334,7 +335,7 @@ bool IRCDProto::IsHostValid(const Anope::string &host) void IRCDProto::SendOper(User *u) { - SendNumeric(381, u->GetUID(), "You are now an IRC operator (set by services)"); + SendNumeric(RPL_YOUREOPER, u->GetUID(), "You are now an IRC operator (set by services)"); u->SetMode(NULL, "OPER"); } -- cgit