diff options
| author | 2017-12-09 13:43:44 +0000 | |
|---|---|---|
| committer | 2017-12-09 13:43:44 +0000 | |
| commit | e8da9b7a266c545844bfb4a3987b7fc0b05f2cf7 (patch) | |
| tree | 8108564a240a0ff38511bf1aa224ccc44028d37f /src/modules/m_services_account.cpp | |
| parent | Clean up m_password_hash slightly. (diff) | |
| download | inspircd++-e8da9b7a266c545844bfb4a3987b7fc0b05f2cf7.tar.gz inspircd++-e8da9b7a266c545844bfb4a3987b7fc0b05f2cf7.tar.bz2 inspircd++-e8da9b7a266c545844bfb4a3987b7fc0b05f2cf7.zip | |
Add names for a bunch more numerics.
Diffstat (limited to 'src/modules/m_services_account.cpp')
| -rw-r--r-- | src/modules/m_services_account.cpp | 10 |
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"); } } |
