From e8da9b7a266c545844bfb4a3987b7fc0b05f2cf7 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 9 Dec 2017 13:43:44 +0000 Subject: Add names for a bunch more numerics. --- src/modules/m_servprotect.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/modules/m_servprotect.cpp') diff --git a/src/modules/m_servprotect.cpp b/src/modules/m_servprotect.cpp index dae646576..1226b601a 100644 --- a/src/modules/m_servprotect.cpp +++ b/src/modules/m_servprotect.cpp @@ -21,6 +21,12 @@ #include "inspircd.h" +enum +{ + // From AustHex. + RPL_WHOISSERVICE = 310 +}; + /** Handles user mode +k */ class ServProtectMode : public ModeHandler @@ -62,7 +68,7 @@ class ModuleServProtectMode : public Module, public Whois::EventListener, public { if (whois.GetTarget()->IsModeSet(bm)) { - whois.SendLine(310, "is a Network Service on " + ServerInstance->Config->Network); + whois.SendLine(RPL_WHOISSERVICE, "is a Network Service on " + ServerInstance->Config->Network); } } -- cgit v1.2.3