summaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-24 18:09:18 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-24 18:09:18 +0000
commite22745406575667cc94cb8e3b7b78322cce2aa3c (patch)
treee0941f2cea3e8e575e1d1a1f94fbaf1e8b05b81a /src/command_parse.cpp
parent58e4aa3a8c0ac57ee2336883077cf5b0aff77c9c (diff)
Tidyups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8351 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index d63e3938f..9df7f4754 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -284,16 +284,6 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd)
return true;
}
- if (!user)
- {
- /*
- * before, we went and found the command even with no user.. seems nonsensical.
- * I'm not entirely sure when we would be passed NULL, but let's handle it
- * anyway, by dropping it like a hot potato. -- w00t
- */
- return true;
- }
-
/* find the command, check it exists */
Commandable::iterator cm = cmdlist.find(command);
@@ -309,13 +299,9 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd)
if (!user->ExemptFromPenalty)
{
user->IncreasePenalty(cm->second->Penalty);
- ServerInstance->Log(DEBUG,"Penalty for %s is now incremented to %d (%d added on)", user->nick, user->Penalty, cm->second->Penalty);
do_more = (user->Penalty < 10);
if (!do_more)
- {
user->OverPenalty = true;
- ServerInstance->Log(DEBUG,"User %s now OVER penalty of 10", user->nick);
- }
}
/* activity resets the ping pending timer */