summaryrefslogtreecommitdiff
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
parent20e2743926aafeae8104a0706806d36149574e8a (diff)
Add RPL_ISON, RPL_USERIP and RPL_USERHOST to the list of numerics
Use them instead of the raw numbers
-rw-r--r--include/numerics.h4
-rw-r--r--src/coremods/core_ison.cpp2
-rw-r--r--src/coremods/core_userhost.cpp2
-rw-r--r--src/modules/m_userip.cpp2
4 files changed, 6 insertions, 4 deletions
diff --git a/include/numerics.h b/include/numerics.h
index 72caaddcc..fcc5f5942 100644
--- a/include/numerics.h
+++ b/include/numerics.h
@@ -73,7 +73,8 @@ enum
RPL_MAPUSERS = 270, // insp-specific
RPL_AWAY = 301,
-
+ RPL_USERHOST = 302,
+ RPL_ISON = 303,
RPL_SYNTAX = 304, // insp-specific
RPL_UNAWAY = 305,
@@ -98,6 +99,7 @@ enum
RPL_TOPIC = 332,
RPL_TOPICTIME = 333, // not RFC, extremely common though
+ RPL_USERIP = 340,
RPL_INVITING = 341,
RPL_INVITELIST = 346, // insp-specific (stolen from ircu)
RPL_ENDOFINVITELIST = 347, // insp-specific (stolen from ircu)
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;
}