From 0ff8bc01c2c467b16a3b6ac35bfa67b64cb2f45a Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 14 Apr 2007 23:39:41 +0000 Subject: Don't send SYNTAX to clients which havent registered fully yet. Nothing says we cant but its a bit 'odd' and may break something git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6795 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command_parse.cpp b/src/command_parse.cpp index bf04960bd..f013e0cd5 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -334,7 +334,7 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd) { 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) && (cm->second->syntax.length())) + 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; } -- cgit v1.2.3