summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-28 16:54:42 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-28 16:54:42 +0000
commit28cfa7d8aec7a122f51b36a715fd6ddc55837be1 (patch)
tree36b6c5bbca4ecff8ebd4d7fa6b38eda32206d07d /src/command_parse.cpp
parent1448d13e17ed68ff36c83d08d4b3d6b2ff7e7012 (diff)
Document <options:syntaxhints> and <options:nouserdns>
Change syntaxhints to seperate RPL_TEXT (prefix SYNTAX) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4578 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index a90b7e4e3..3f8e87989 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -252,7 +252,12 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd)
{
/* If syntax is given, display this as the 461 reply */
if (cm->second->syntax.length())
- WriteServ(user->fd,"461 %s %s :Not enough parameters. Syntax: %s %s", user->nick, command.c_str(), cm->second->command.c_str(), cm->second->syntax.c_str());
+ {
+ WriteServ(user->fd,"461 %s %s :Not enough parameters.", user->nick, command.c_str())
+ /* Use RPL_TEXT for this */
+ if (Config->SyntaxHints)
+ WriteServ(user->fd,"304 %s :SYNTAX %s %s", user->nick, cm->second->command.c_str(), cm->second->syntax.c_str());
+ }
else
WriteServ(user->fd,"461 %s %s :Not enough parameters", user->nick, command.c_str());
return;