summaryrefslogtreecommitdiff
path: root/src/modules/m_servprotect.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-12-09 13:43:44 +0000
committerPeter Powell <petpow@saberuk.com>2017-12-09 13:43:44 +0000
commite8da9b7a266c545844bfb4a3987b7fc0b05f2cf7 (patch)
tree8108564a240a0ff38511bf1aa224ccc44028d37f /src/modules/m_servprotect.cpp
parent81869b134daf1fe9e78fa84bc605b25c74863cac (diff)
Add names for a bunch more numerics.
Diffstat (limited to 'src/modules/m_servprotect.cpp')
-rw-r--r--src/modules/m_servprotect.cpp8
1 files changed, 7 insertions, 1 deletions
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);
}
}