directly remove player from kickCounterList after kickban

This commit is contained in:
doitux
2010-07-13 19:54:34 +00:00
parent 35c5bcc0a2
commit 9e45ed93c0
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -92,9 +92,11 @@ QStringList MessageFilter::check(unsigned playerId, QString nick, QString msg)
myClientKickCounterList.insert(nick, tmpInfos);
}
else {
//please is already on the list: either raise kickNumber or kickban when kickNumerToBan is reached
//pleayer is already on the list: either raise kickNumber or kickban when kickNumerToBan is reached
if(j.value().kickNumber == kickNumberToBan) {
action = KICKBAN;
//remove player from kickCounterList
myClientKickCounterList.remove(j.key());
}
else {
ClientKickInfos tmpInfos;