Jethro commented on a Page, Regex Swear Kicker  -  Oct 05, 2009

TheProdigY, I'll recommend this:

on @*:TEXT:*:#:$cuss($1-)
on @*:ACTION:*:#:$cuss($1-)
on @*:NOTICE:*:#:$cuss($1-)
alias -l cuss {
  tokenize 32 $strip($1-)
  var %cuss = 1, %swear = $me @#$ black nigga negro niggah n1gger kike !@#$ !@#$ !@#$ SyracuseChat
  while ($gettok(%swear,%cuss,32)) {
    if ($findtok($1-,$v1,1,32)) {
      kick $chan $nick Please don't use that kind of language here.
    }
    inc %cuss
  }
}

This way you cover the text, action and notice event together.

 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.