summaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-29 13:07:14 +0000
committerSadie Powell <sadie@witchery.services>2024-02-29 13:07:14 +0000
commit25bdcfcbc472b8e348aa338d8ebb0a18fd006fff (patch)
tree6ccd249120c0d3281a5b0b25f6cff1d65445c703 /src/protocol.cpp
parent26919f41d2e2089ca0a4f402cd948d067d030704 (diff)
Add names for the numerics used by the core.
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp3
1 files changed, 2 insertions, 1 deletions
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");
}