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_services_account.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/modules/m_services_account.cpp') diff --git a/src/modules/m_services_account.cpp b/src/modules/m_services_account.cpp index 2a5915f25..05cc2b416 100644 --- a/src/modules/m_services_account.cpp +++ b/src/modules/m_services_account.cpp @@ -28,6 +28,12 @@ enum { + // From UnrealIRCd. + RPL_WHOISREGNICK = 307, + + // From ircu. + RPL_WHOISACCOUNT = 330, + // From ircd-hybrid? ERR_NEEDREGGEDNICK = 477, @@ -165,13 +171,13 @@ class ModuleServicesAccount : public Module, public Whois::EventListener if (account) { - whois.SendLine(330, *account, "is logged in as"); + whois.SendLine(RPL_WHOISACCOUNT, *account, "is logged in as"); } if (whois.GetTarget()->IsModeSet(m5)) { /* user is registered */ - whois.SendLine(307, "is a registered nick"); + whois.SendLine(RPL_WHOISREGNICK, "is a registered nick"); } } -- cgit v1.3.1-10-gc9f91