From e7310ca2f66d2e267efc62deca53a8b534bdd0eb Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 8 Jan 2008 10:35:07 +0000 Subject: Don't send 421 to unregistered clients, per RFC (thanks nenolod) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8661 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 5492e26b5..5ff3d56d7 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -290,7 +290,7 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd) /* find the command, check it exists */ Commandable::iterator cm = cmdlist.find(command); - if (cm == cmdlist.end()) + if (cm == cmdlist.end() && user->registered == REG_ALL) { ServerInstance->stats->statsUnknown++; user->WriteServ("421 %s %s :Unknown command",user->nick,command.c_str()); -- cgit v1.2.3