summaryrefslogtreecommitdiff
path: root/src/modules/m_botmode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_botmode.cpp')
-rw-r--r--src/modules/m_botmode.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_botmode.cpp b/src/modules/m_botmode.cpp
index b5befe9fa..487bc140b 100644
--- a/src/modules/m_botmode.cpp
+++ b/src/modules/m_botmode.cpp
@@ -21,6 +21,12 @@
#include "inspircd.h"
+enum
+{
+ // From UnrealIRCd.
+ RPL_WHOISBOT = 335,
+};
+
class ModuleBotMode : public Module, public Whois::EventListener
{
SimpleUserModeHandler bm;
@@ -40,7 +46,7 @@ class ModuleBotMode : public Module, public Whois::EventListener
{
if (whois.GetTarget()->IsModeSet(bm))
{
- whois.SendLine(335, "is a bot on " + ServerInstance->Config->Network);
+ whois.SendLine(RPL_WHOISBOT, "is a bot on " + ServerInstance->Config->Network);
}
}
};