directly remove player from kickCounterList after kickban
This commit is contained in:
@@ -159,7 +159,10 @@ bool CleanerServer::handleMessage(InternalChatCleanerPacket &msg) {
|
||||
else if(checkAction == "kick") {
|
||||
netReply->cleanerActionType = cleanerActionType_cleanerActionKick;
|
||||
}
|
||||
/* cleanerActionType_cleanerActionBan */
|
||||
else if(checkAction == "kickban") {
|
||||
netReply->cleanerActionType = cleanerActionType_cleanerActionBan;
|
||||
}
|
||||
|
||||
string tmpCheck(checkMessage.toUtf8());
|
||||
netReply->cleanerText =
|
||||
OCTET_STRING_new_fromBuf(
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user