summaryrefslogtreecommitdiff
path: root/src/modules/m_services_account.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-12-09 13:43:44 +0000
committerPeter Powell <petpow@saberuk.com>2017-12-09 13:43:44 +0000
commite8da9b7a266c545844bfb4a3987b7fc0b05f2cf7 (patch)
tree8108564a240a0ff38511bf1aa224ccc44028d37f /src/modules/m_services_account.cpp
parent81869b134daf1fe9e78fa84bc605b25c74863cac (diff)
Add names for a bunch more numerics.
Diffstat (limited to 'src/modules/m_services_account.cpp')
-rw-r--r--src/modules/m_services_account.cpp10
1 files changed, 8 insertions, 2 deletions
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");
}
}