Running astyle.

This commit is contained in:
lotodore
2012-12-21 01:01:01 +01:00
parent 7503b1754e
commit d3cd97c666
63 changed files with 4437 additions and 4448 deletions
+15 -15
View File
@@ -9,26 +9,26 @@ BadWordCheck::BadWordCheck()
bool BadWordCheck::run(QString msg)
{
msg = msg.toLower();
bool badMessage(false);
bool badMessage(false);
QStringListIterator it(badWords);
while (it.hasNext()) {
QString bw=it.next();
if(msg.contains(bw)) {
badMessage=true;
QString bw=it.next();
if(msg.contains(bw)) {
badMessage=true;
//exception check
QStringListIterator it2(badWordsException);
while (it2.hasNext()) {
QString bwe=it2.next();
if(bwe.contains(bw) && msg.contains(bwe)) {
badMessage=false;
}
}
}
//exception check
QStringListIterator it2(badWordsException);
while (it2.hasNext()) {
QString bwe=it2.next();
if(bwe.contains(bw) && msg.contains(bwe)) {
badMessage=false;
}
}
}
}
if(badMessage) return true;
else return false;
if(badMessage) return true;
else return false;
}