next steps pokerthcleaner, read config file with badwords and settings, warn + kick procedure

This commit is contained in:
doitux
2009-07-19 23:14:27 +00:00
parent 7513742d29
commit 4acc9ec234
12 changed files with 856 additions and 42 deletions
+3 -5
View File
@@ -4,17 +4,15 @@
BadWordCheck::BadWordCheck()
{
badWords << "arsch" << "asshole" << "bastard" << "bitch" << "cunt" << " dick " << "drecksau" << " fag " << "fagget" << "fotze" << "fuker"
<< "fuck" << " fuk " << "gay" << "horny" << "hure" << "mistgeburt" << "missgeburt" << "motherfucker" << "nazi" << "nigga"
<< "nigger" << "nutte" << "ommak" << "penis" << "pussy" << "schlampe" << "schwanz" << "sex" << "shit" << "sieg heil" << "slut"
<< "suck" << "whore";
}
bool BadWordCheck::run(QString msg)
{
msg = msg.toLower();
QStringListIterator it(badWords);
while (it.hasNext()) {
if(msg.toLower().contains(it.next()))
if(msg.contains(it.next()))
return true;
}
return false;