summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-02-25 18:21:07 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-02-25 18:21:07 +0100
commit9cb415d6bd32d9fb3a1959d78374c9338fae2eeb (patch)
treea0ec1f7264990d54fd10a9af580ab83b425670c6 /src/coremods
parent20e2743926aafeae8104a0706806d36149574e8a (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/coremods')
-rw-r--r--src/coremods/core_ison.cpp2
-rw-r--r--src/coremods/core_userhost.cpp2
2 files changed, 2 insertions, 2 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;
}