Jethro commented on a Page, Badwords echo [PRO]  -  Aug 24, 2011

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.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.