diff options
Diffstat (limited to 'src/modules/m_servprotect.cpp')
| -rw-r--r-- | src/modules/m_servprotect.cpp | 8 |
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); } } |
