Hey. I just noticed this. With the following code, anyone who is NOT op is kicked for saying ANY word. I had a visitor come in who was not an op, they said hello, and it gave them the first warning. Obiously "hello" nor any other non-swear words are in the profanity.txt file. Im confused. I'm sure it's a stupid screw-up by me, which I have found is not uncommon. Would someone please tell me what the heck is going on? Also, if you see an easy way to clean up this code and make it more efficiant please let me know. Thanks.
Code:
 on @*:TEXT:*:#: { 
  if ($nick isop #) return 
  if ($read(protect2.txt,w,$+(,$nick))) { return }
  if ($wildtok($1-,$+(*,$read(profanity.txt,w,$1-),*),1,32)) {
    set -u1800 %rlpro. [ $+ [ $address($nick,2) ] ] $calc( %rlpro. [ $+ [ $address($nick,2) ] ] + 1)
    if (%rlpro. [ $+ [ $address($nick,2) ] ] == 1) /msg # Please Don't Use Any Profanity $nick - First Warning! 
    if (%rlpro. [ $+ [ $address($nick,2) ] ] == 2) /msg # Second and Last Warning $nick - Next Time you will be Kicked! 
    if (%rlpro. [ $+ [ $address($nick,2) ] ] >= 3) {
      ban -u600 $chan $address | /kick # $nick You Were Warned About Using Profanity! (10 Minute Ban)
    }
  }
}