added anti troll feature to punisher module
This commit is contained in:
parent
6854998ffb
commit
19a9145fae
@ -56,6 +56,11 @@ bool PunisherModule::messageHandler(Message msg)
|
||||
answer = QString("");
|
||||
for(; i<str.size(); ++i)
|
||||
{
|
||||
if(str[i].size() < 3)
|
||||
{
|
||||
answer = QString("KICK #%1 %2 : <3 \r\n").arg(getChan()).arg(msg.nick);
|
||||
return true;
|
||||
}
|
||||
forbidden_words.push_back(str[i]);
|
||||
answer += privateSay(QString("added %1 to the list of forbidden words").arg(str[i]), target);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user