From e8da9b7a266c545844bfb4a3987b7fc0b05f2cf7 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 9 Dec 2017 13:43:44 +0000 Subject: Add names for a bunch more numerics. --- src/modules/m_swhois.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/modules/m_swhois.cpp') diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index 5c2fb6011..d8c8a33bb 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -25,6 +25,12 @@ #include "inspircd.h" +enum +{ + // From UnrealIRCd. + RPL_WHOISSPECIAL = 320 +}; + /** Handle /SWHOIS */ class CommandSwhois : public Command @@ -102,7 +108,7 @@ class ModuleSWhois : public Module, public Whois::LineEventListener std::string* swhois = cmd.swhois.get(whois.GetTarget()); if (swhois) { - whois.SendLine(320, *swhois); + whois.SendLine(RPL_WHOISSPECIAL, *swhois); } } -- cgit v1.3.1-10-gc9f91