aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_customtitle.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-07-17 18:35:08 +0100
committerGravatar Sadie Powell2021-07-17 18:35:08 +0100
commit805dbd4def1a83a387118d40300764c4660ffbfe (patch)
tree6db5d76f7d472fd1ae42095b1e4c454cfef4d8e5 /src/modules/m_customtitle.cpp
parentFix a shortening issue in hostchange. (diff)
parentFix ssl_mbedtls on mbedTLS v3. (diff)
Merge branch 'insp3' into master.
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 500184482..a1af43f5e 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;
@@ -149,7 +143,7 @@ class ModuleCustomTitle : public Module, public Whois::LineEventListener
ModResult OnWhoisLine(Whois::Context& whois, Numeric::Numeric& numeric) 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());