for protection from kick,ban and deop
#protection on
on *:DEOP:#: {
if ($opnick == $me) && ($nick != $me) && ($nick != ChanServ) {
chanServ OP $chan $me
chanserv deop $chan $nick
ban -u60 $chan $nick
kick $chan $nick U Are Not Allowed To Deop Me <Kick $chr(35) $+ %knum $+ > | inc %knum 1
}
}
ON *:KICK:#: {
if ($knick == $me) && ($nick != ChanServ) && ($nick != $me) {
chanserv unban $chan $me
ban -u60 $chan $nick
kick $chan $nick U Are Not Allowed To Kick Me <Kick $chr(35) $+ %knum $+ > | inc %knum 1
}
}
on @*:BAN:#:{
if ($banmask iswm $address($me,5)) {
mode $chan -b $banmask
chanserv unban $chan $me
ban -u60 $chan $nick 2
kick $chan $nick U Are Not Allowed To Ban Me <Kick $chr(35) $+ %knum $+ > | inc %knum 1
}
}
#protection end
menu menubar {
-=Protection %keo $+ =-
.[On]:set %keo On | enable #protection | echo -a Protection is ON
.[Off]:set %keo Off | disable #protection | echo -a Protection is OFF
}