aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_customtitle.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2017-12-09 13:43:44 +0000
committerGravatar Peter Powell2017-12-09 13:43:44 +0000
commite8da9b7a266c545844bfb4a3987b7fc0b05f2cf7 (patch)
tree8108564a240a0ff38511bf1aa224ccc44028d37f /src/modules/m_customtitle.cpp
parentClean up m_password_hash slightly. (diff)
downloadinspircd++-e8da9b7a266c545844bfb4a3987b7fc0b05f2cf7.tar.gz
inspircd++-e8da9b7a266c545844bfb4a3987b7fc0b05f2cf7.tar.bz2
inspircd++-e8da9b7a266c545844bfb4a3987b7fc0b05f2cf7.zip
Add names for a bunch more numerics.
Diffstat (limited to 'src/modules/m_customtitle.cpp')
-rw-r--r--src/modules/m_customtitle.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp
index 16d1ae738..76d37b9d9 100644
--- a/src/modules/m_customtitle.cpp
+++ b/src/modules/m_customtitle.cpp
@@ -21,6 +21,12 @@
#include "inspircd.h"
+enum
+{
+ // From UnrealIRCd.
+ RPL_WHOISSPECIAL = 320
+};
+
/** Handle /TITLE
*/
class CommandTitle : public Command
@@ -91,7 +97,7 @@ class ModuleCustomTitle : public Module, public Whois::LineEventListener
const std::string* ctitle = cmd.ctitle.get(whois.GetTarget());
if (ctitle)
{
- whois.SendLine(320, ctitle);
+ whois.SendLine(RPL_WHOISSPECIAL, ctitle);
}
}
/* Don't block anything */