Hey :)
So I made this snippet to help operators IRC or IRCop .. and other , Because they are working hardly and they need somthing like this to facilitate the Tax Office .
And in my snippet I don't use the command /Kick I choose echo to avoid mistakes ( my snippet can kick innocent ) and If you like to use Kick instead echo you can do it, Just replace this { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- } by this { kick $chan $nick Your reason here }
Enjoy ..
On *:text:*:*:{
if ((bitch isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((cunt isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((fuck isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((fuck you isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((whore isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((anal isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((horny isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((slut isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((nigga isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((nigger isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((pussy isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((dick isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((ahole isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((anus isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((ass isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((fucker isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((porn isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((shit isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((asshole isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((vagina isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((penis isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((jackass isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((faggot isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((fag isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((horny isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((dickhead isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((gay isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((tits isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((bastard isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
elseif ((sex isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
}
leonlee, this is all you need compared to the if-then-elseif version. This one uses $count(), which functions pretty much the same as the isin operator:
on *:text:*:*:{
if ($active != #) && ($nick(#,$nick,rv)) && ($count($strip($1-),$&
bitch,cunt,fuck,fuck you,whore,anal,horny,slut,nigga,nigger,$&
pussy,dick,ahole,anus,ass,fucker,porn,shit,asshole,vagina,$&
penis,jackass,faggot,fag,horny,dickhead,gay,tits,bastard,sex)) {
echo -at 7Bad word possible from10 # by4 $nick : 12 $1-
}
}
I've added a check to not kick ops and above.
Some bad words are censored by Hawkee, so you need to edit 'em.
Of course, change the echo to the kick command if you wish.
Amytix, you may need to update it to my example, which cuts down a significant byte size and repetitions.
Savege_CL, the best "pro" choice would be using the hash table like so:
hadd -m bad *badwords* reason
if ($hfind(bad,TEXT,1,W)) {
echo -a badword matches $v1 - reason: $hget(bad,$v1)
}
Using regex is a "winding load" 'cause you'll find yourself adding lots of them...and many line break identifiers later, your remote sure will fill up "nicely."
If you like to add other bad words you can choosing this +400 badwords
http://code.google.com/p/badwordslist/downloads/detail?name=badwords.txt