summaryrefslogtreecommitdiff
path: root/src/modules/m_helpop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_helpop.cpp')
-rw-r--r--src/modules/m_helpop.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index ecab97ca2..b8c5d3029 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -23,6 +23,12 @@
#include "inspircd.h"
+enum
+{
+ // From UnrealIRCd.
+ RPL_WHOISHELPOP = 310
+};
+
typedef std::map<std::string, std::string, irc::insensitive_swo> HelpopMap;
static HelpopMap helpop_map;
@@ -145,7 +151,7 @@ class ModuleHelpop : public Module, public Whois::EventListener
{
if (whois.GetTarget()->IsModeSet(ho))
{
- whois.SendLine(310, "is available for help.");
+ whois.SendLine(RPL_WHOISHELPOP, "is available for help.");
}
}