Implement chat bot mute on server side (#1).

This commit is contained in:
lotodore
2012-01-08 13:02:29 +00:00
parent c3dc99620e
commit 03a1a1dc55
13 changed files with 108 additions and 28 deletions
+2 -3
View File
@@ -79,10 +79,9 @@ QStringList MessageFilter::check(unsigned gameId, unsigned playerId, QString nic
} else {
if(i.value().warnLevel == warnLevelToKick || i.value().lastWarnType == offence) {
if(gameId) {
//check for ingame to do not kick but mute
//check for ingame to do not kick but mute
action = MUTE;
}
else {
} else {
// Kick Command
action = KICK;
//remove playerId from all lists and as LAST from myClientWarnLevelList