diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-02-25 18:21:07 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-02-25 18:21:07 +0100 |
commit | 9cb415d6bd32d9fb3a1959d78374c9338fae2eeb (patch) | |
tree | a0ec1f7264990d54fd10a9af580ab83b425670c6 /src | |
parent | 20e2743926aafeae8104a0706806d36149574e8a (diff) |
Add RPL_ISON, RPL_USERIP and RPL_USERHOST to the list of numerics
Use them instead of the raw numbers
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_ison.cpp | 2 | ||||
-rw-r--r-- | src/coremods/core_userhost.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_userip.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/coremods/core_ison.cpp b/src/coremods/core_ison.cpp index 49da8931a..f1733ba88 100644 --- a/src/coremods/core_ison.cpp +++ b/src/coremods/core_ison.cpp @@ -44,7 +44,7 @@ class IsonReplyBuilder : public Numeric::Builder<' ', true> { public: IsonReplyBuilder(LocalUser* user) - : Numeric::Builder<' ', true>(user, 303) + : Numeric::Builder<' ', true>(user, RPL_ISON) { } diff --git a/src/coremods/core_userhost.cpp b/src/coremods/core_userhost.cpp index 14750ef60..3100995a8 100644 --- a/src/coremods/core_userhost.cpp +++ b/src/coremods/core_userhost.cpp @@ -77,7 +77,7 @@ CmdResult CommandUserhost::Handle (const std::vector<std::string>& parameters, U } } - user->WriteNumeric(302, retbuf); + user->WriteNumeric(RPL_USERHOST, retbuf); return CMD_SUCCESS; } diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp index 27f5fb17c..6fa367bff 100644 --- a/src/modules/m_userip.cpp +++ b/src/modules/m_userip.cpp @@ -70,7 +70,7 @@ class CommandUserip : public Command } if (nicks != 0) - user->WriteNumeric(340, retbuf); + user->WriteNumeric(RPL_USERIP, retbuf); return CMD_SUCCESS; } |