summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-24 16:49:09 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-24 16:49:09 +0000
commit62e03b9d83caca311166b0a1134fcc43bac7ae76 (patch)
tree878abc9a48b614b85b5401b77276e5b00ae9de08
parent48be23796f74d250717bffa9b117a049d5388861 (diff)
Update a comment, remove another one that's useless
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7551 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/command_parse.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index 774936b8b..7a89cc4ca 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -329,7 +329,6 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd)
if (items < cm->second->min_params)
{
user->WriteServ("461 %s %s :Not enough parameters.", user->nick, command.c_str());
- /* If syntax is given, display this as the 461 reply */
if ((ServerInstance->Config->SyntaxHints) && (user->registered == REG_ALL) && (cm->second->syntax.length()))
user->WriteServ("304 %s :SYNTAX %s %s", user->nick, cm->second->command.c_str(), cm->second->syntax.c_str());
return;
@@ -346,9 +345,8 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd)
return;
/*
- * WARNING: nothing may come after the
- * command handler call, as the handler
- * may free the user structure!
+ * WARNING: nothing should come after this, as the user may be on a cull list to
+ * be nuked next loop iteration. be sensible.
*/
CmdResult result = cm->second->Handle(command_p,items,user);