mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-11 11:39:02 -04:00
Add the check for user->ExemptFromPenalty
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8255 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
2311a4b6f7
commit
ed2ca79021
@ -303,13 +303,17 @@ bool CommandParser::ProcessCommand(User *user, std::string &cmd)
|
||||
}
|
||||
|
||||
/* Modify the user's penalty */
|
||||
user->Penalty += cm->second->Penalty;
|
||||
ServerInstance->Log(DEBUG,"Penalty for %s is now incremented to %d (%d added on)", user->nick, user->Penalty, cm->second->Penalty);
|
||||
bool do_more = (user->Penalty < 10);
|
||||
if (!do_more)
|
||||
bool do_more = true;
|
||||
if (!user->ExemptFromPenalty)
|
||||
{
|
||||
user->OverPenalty = true;
|
||||
ServerInstance->Log(DEBUG,"User %s now OVER penalty of 10", user->nick);
|
||||
user->Penalty += 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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user