mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
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
This commit is contained in:
parent
25d1f76ca0
commit
e7310ca2f6
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user