diff options
-rw-r--r-- | include/numerics.h | 3 | ||||
-rw-r--r-- | src/command_parse.cpp | 2 |
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())) |