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
+4 -1
View File
@@ -159,7 +159,10 @@ bool CleanerServer::handleMessage(InternalChatCleanerPacket &msg) {
else if(checkAction == "kick") { else if(checkAction == "kick") {
netReply->cleanerActionType = cleanerActionType_cleanerActionKick; netReply->cleanerActionType = cleanerActionType_cleanerActionKick;
} }
/* cleanerActionType_cleanerActionBan */ else if(checkAction == "kickban") {
netReply->cleanerActionType = cleanerActionType_cleanerActionBan;
}
string tmpCheck(checkMessage.toUtf8()); string tmpCheck(checkMessage.toUtf8());
netReply->cleanerText = netReply->cleanerText =
OCTET_STRING_new_fromBuf( OCTET_STRING_new_fromBuf(
+3 -1
View File
@@ -92,9 +92,11 @@ QStringList MessageFilter::check(unsigned playerId, QString nick, QString msg)
myClientKickCounterList.insert(nick, tmpInfos); myClientKickCounterList.insert(nick, tmpInfos);
} }
else { 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) { if(j.value().kickNumber == kickNumberToBan) {
action = KICKBAN; action = KICKBAN;
//remove player from kickCounterList
myClientKickCounterList.remove(j.key());
} }
else { else {
ClientKickInfos tmpInfos; ClientKickInfos tmpInfos;