summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-08 10:35:07 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-08 10:35:07 +0000
commite7310ca2f66d2e267efc62deca53a8b534bdd0eb (patch)
tree01aa51f57444c7be5f633a159e9ec4dc1cf30f29 /src
parent25d1f76ca00c273f4663121f67735834c5cb25cc (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/command_parse.cpp2
1 files changed, 1 insertions, 1 deletions
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());