guest598594 commented on a Page, Swear pro with specified channels dialog  -  Sep 11, 2008
on 1:TEXT:*kima*:%chanprot:{
  if ($nick isop #) { return }
  if ($nick isvo #) { return }
  if ($me isop #) { ban -ku600 # $nick Swearing detected %logox Banned for : 10mins 
  }
}

Couple of suggestions:

1) You can use on @*:TEXT... to substitute if ($me isop $chan)
2) Rather than ending if the nick isop or voice, you can just do

  if ($me isop $chan && $nick isreg $chan) { ban -k... }

Or maybe instead of an on text per word you could do:

on @*:text:*:%somechan:{
  if ($nick isreg $chan) {
    if (WORD isin $1- || WORD2 isin $1- || WORD3 isin $1-) {
      ban -k...
    }
  }
}
 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.