summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-20 12:19:30 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-07-20 12:19:30 +0000
commit93d7a1311d3b22fa9446eda9f7f379f6c0f97956 (patch)
treeaf7dd1d09299cc64f1702cf73dc976e1509e89ca
parentcef4be3dde599f341d03f6e65d8a99d28d58a487 (diff)
304 -> RPL_SYNTAX
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10052 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/numerics.h3
-rw-r--r--src/command_parse.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/numerics.h b/include/numerics.h
index 0ee4b95fe..bd92390da 100644
--- a/include/numerics.h
+++ b/include/numerics.h
@@ -52,8 +52,9 @@ enum Numerics
RPL_ADMINLOC1 = 257,
RPL_ADMINLOC2 = 258,
RPL_ADMINEMAIL = 259,
- RPL_MAPUSERS = 270, // insp-specific(?)
+ RPL_MAPUSERS = 270, // insp-specific
+ RPL_SYNTAX = 304, // insp-specific
RPL_NOWAWAY = 305,
RPL_UNAWAY = 306,
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 00e5402fa..4d03681b6 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -336,7 +336,7 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd)
{
user->WriteNumeric(ERR_NEEDMOREPARAMS, "%s %s :Not enough parameters.", user->nick.c_str(), command.c_str());
if ((ServerInstance->Config->SyntaxHints) && (user->registered == REG_ALL) && (cm->second->syntax.length()))
- user->WriteNumeric(304, "%s :SYNTAX %s %s", user->nick.c_str(), cm->second->command.c_str(), cm->second->syntax.c_str());
+ user->WriteNumeric(RPL_SYNTAX, "%s :SYNTAX %s %s", user->nick.c_str(), cm->second->command.c_str(), cm->second->syntax.c_str());
return do_more;
}
if ((user->registered != REG_ALL) && (!cm->second->WorksBeforeReg()))