Jethro commented on a Page, Regex Swear Kicker  -  Sep 04, 2009

Actually I have to acknowledge the fact that using regex to kick bad words isn't 100% foolproof. miniCruzer, you might wanna try this:

on @*:TEXT:*:#: { 
  var %cuss = 1, %swear = badword1 badword2 badword3 badword4
  while ($gettok(%swear,%cuss,32)) {
    if ($findtok($strip($1-),$v1,1,32)) { 
      kick $chan $nick Please don't use that kind of language here.
    }
    inc %cuss
  }
}

This shall match exactly the way words are and anywhere in a sentence.

 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.