From 38351efa8d3f17ad9a46f332783fbe0fd663f0cf Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 5 Jul 2021 16:43:33 +0100 Subject: Deduplicate all whois numerics to the whois module header. --- src/modules/m_customtitle.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/modules/m_customtitle.cpp') 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()); -- cgit v1.3.1-10-gc9f91