aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_customtitle.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-07-05 16:43:33 +0100
committerGravatar Sadie Powell2021-07-05 16:50:14 +0100
commit38351efa8d3f17ad9a46f332783fbe0fd663f0cf (patch)
treea1cc47e8a72d5c247d6aeb61a0f433c14efb13a7 /src/modules/m_customtitle.cpp
parentDon't send oper swhois to users with hideoper enabled. (diff)
downloadinspircd++-38351efa8d3f17ad9a46f332783fbe0fd663f0cf.tar.gz
inspircd++-38351efa8d3f17ad9a46f332783fbe0fd663f0cf.tar.bz2
inspircd++-38351efa8d3f17ad9a46f332783fbe0fd663f0cf.zip
Deduplicate all whois numerics to the whois module header.
Diffstat (limited to 'src/modules/m_customtitle.cpp')
-rw-r--r--src/modules/m_customtitle.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp
index faac3045a..fc6d57d80 100644
--- a/src/modules/m_customtitle.cpp
+++ b/src/modules/m_customtitle.cpp
@@ -27,12 +27,6 @@
#include "inspircd.h"
#include "modules/whois.h"
-enum
-{
- // From UnrealIRCd.
- RPL_WHOISSPECIAL = 320
-};
-
struct CustomTitle
{
const std::string name;
@@ -156,7 +150,7 @@ class ModuleCustomTitle : public Module, public Whois::LineEventListener
ModResult OnWhoisLine(Whois::Context& whois, Numeric::Numeric& numeric) CXX11_OVERRIDE
{
/* We use this and not OnWhois because this triggers for remote, too */
- if (numeric.GetNumeric() == 312)
+ if (numeric.GetNumeric() == RPL_WHOISSERVER)
{
/* Insert our numeric before 312 */
const std::string* ctitle = cmd.ctitle.get(whois.GetTarget());