If nick change mode on chan where bot is oped, bot kick him and changes mode back to previous!
on *:MODE:#: {
if ($me !isop $chan) { halt }
if ($nick == $me) { halt }
if ( $level($address($nick,1)) == master) { halt }
kick $chan $nick dont change modes
mode # $replace($1,-,.,+,:,.,+,:,-) $2-
}
works like that:
[20:07:16] * Cascada` sets mode: +m
[20:07:16] * Cascada` was kicked by Plidna (dont change modes)
[20:07:16] * Plidna sets mode: -m
you could do somthing like this just replace the #chan1 and so on with the channels you want it to work in and also chage BotOwnersNick to what ever nick you want to be able to change modes.
also you can just set mode lock on instead of useing this.
on !@*:MODE:#: {
if ($istok(#chan1 #chan2,$chan,32) && !$istok(ChanServ BotOwnersNick,$nick,32)) {
kick $chan $nick dont change modes
mode # $+($iif($left($1,1) == -,+,-),$right($1,-1))
}
}