diff options
| author | 2021-07-17 18:35:08 +0100 | |
|---|---|---|
| committer | 2021-07-17 18:35:08 +0100 | |
| commit | 805dbd4def1a83a387118d40300764c4660ffbfe (patch) | |
| tree | 6db5d76f7d472fd1ae42095b1e4c454cfef4d8e5 /src/modules/m_customtitle.cpp | |
| parent | Fix a shortening issue in hostchange. (diff) | |
| parent | Fix 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.cpp | 8 |
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()); |
