some chatcleaner adjustments

This commit is contained in:
doitux
2009-07-27 20:18:18 +00:00
parent e44286044d
commit a612cff91f
4 changed files with 19 additions and 9 deletions
+3 -1
View File
@@ -43,9 +43,11 @@ QString MessageFilter::check(unsigned playerId, QString nick, QString msg)
action = WARN;
}
else {
if(i.value().warnLevel == warnLevelToKick) {
if(i.value().warnLevel == warnLevelToKick || i.value().lastWarnType == offence) {
// Kick Command
action = KICK;
//remove playerId from all lists and as LAST from myClientWarnLevelList
myTextFloodCheck->removeNickFromList(i.key());
myClientWarnLevelList.remove(i.key());
}
else {