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