mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
304 -> RPL_SYNTAX
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10052 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
cef4be3dde
commit
93d7a1311d
@ -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,
|
||||
|
@ -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()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user