on @:text::#:{
if ($nick !isop $chan) {
var %i 1
while (%i <= $numtok(%badwords,46)) {
if ($+(,$gettok(%badwords,%i,46),) iswm $1-) {
if (!$read(warned.txt,w, $+ $address($Nick,2) $+ )) {
.notice $nick Swearing is against the rules of $chan - Next time you will be kicked
write warned.txt $address($Nick,2)
}
else {
ban -u600 $chan $nick 2
kick $chan $nick 10 minute ban for swearing
}
}
inc %i
}
}
}
See this one : " if ($nick !isop $chan) { "
One easy way is just remove it so it will kick the operator too. Ex :
on @:text::#:{
var %i 1
while (%i <= $numtok(%badwords,46)) {
if ($+(,$gettok(%badwords,%i,46),) iswm $1-) {
if (!$read(warned.txt,w, $+ $address($Nick,2) $+ )) {
.notice $nick Swearing is against the rules of $chan - Next time you will be kicked
write warned.txt $address($Nick,2)
}
else {
ban -u600 $chan $nick 2
kick $chan $nick 10 minute ban for swearing
}
}
inc %i
}
}
}