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") {
|
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(
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user