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)
}
}
}