aboutsummaryrefslogtreecommitdiffstats
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorGravatar w00t2008-01-08 10:38:36 +0000
committerGravatar w00t2008-01-08 10:38:36 +0000
commitb1c44fb9e43d3431e046c97e19172b193ac55c97 (patch)
treef15737fcdc1d7da2e64d5fef5af08a73cb08c25d /src/command_parse.cpp
parentI swear I've fixed this 5 times now.. it's PERMANENT, USE A FUCKING DICTIONAR... (diff)
Backport r8661: don't send 421 to unregistered clients
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8662 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-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 183d0f763..25d1ab650 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -374,7 +374,7 @@ void CommandParser::ProcessCommand(userrec *user, std::string &cmd)
}
}
}
- else if (user)
+ else if (user && user->registered == REG_ALL)
{
ServerInstance->stats->statsUnknown++;
user->WriteServ("421 %s %s :Unknown command",user->nick,command.c_str());