Jethro commented on a Page, Regex Swear Kicker  -  Jun 07, 2010
on @*:text:*:#:swear $1-
on @*:action:*:#:swear $1-
on @*:notice:*:#:swear $1-
alias -l swear {
  var %s = /\b(niggers|(mother)?fuc?k(er)?|pussy|word|word|word|word|word|word|$&
    $+ vagina|word|word|word|word|word|word|word|word|word|word|word|word|$&
    $+ word|word|word|word|word|word|word|word|word|word|word|word|word)\b/iS
  if (($nick !isop #) && ($regex($1-,%s))) { 
    kick # $nick Please don't use that kind of language here. (Auto-response to word: $regml(1) $+ )
  }
}

That'll match motherf-word, f-word and f-word-er. And you can use the link break to divide the regex match if it gets too long.

Frine  -  Nov 30, 2013

@ Jethro
Can we add exemption menu to this code?

Sign in to comment

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.