menu menubar {
 CuTeNeSs PrOtEcT
  .On:/enable #protect | /echo 7 # 9,1CuTeNeSs's ShIt HaS bEeN tUrNeD 11,1on!
  .Off:/disable #protect | /echo 7 # 9,1cuTeNeSs's ShIt HaS bEeN tUrNeD 11,1off!
}
#protect off
ON 1:deop:#: {
  if (($opnick == $me) && ($nick != $me)) goto reop
  halt
  :reop
  msg chanserv op $chan $me | set %myguard on | set %guardnick $nick | set %kickmsg 8,1--=8|CuTeNeSs|8=-- 
  halt
}
on @1:ban:#: {
  if ($nick == $me) { goto end }
  if ($banmask iswm $address($me,0)) { 
    if ($me !ison $chan) { goto end }
    mode $chan -bo+b $banmask $nick $address($nick,3)  
    kick $chan $nick 8,1--=8|^kRy^|8=-- 
  }
  else { goto end }
  :end
}
on 1:op:#: {
  if (($opnick = $me) && (%myguard = on)) goto kick
  halt
  :kick
  ban $chan %guardnick |  kick $chan %guardnick %kickmsg | unset %myguard %guardnick
  else halt
}
ON 1:kick:#: {
  if (($knick == $me) && ($nick != $me)) goto rev
  halt 
  :rev
  set %myguard on | set %guardnick $nick | msg chanserv deop $chan $nick | set %kickmsg 8,1--=8|CuTeNeSs|8=--  
  halt
}
on 1:notice:*bans against you*:*: if $nick = chanserv .timer 1 1 //join $parm6
raw 474:*: if %unbanner = on { msg chanserv unban $parm2 me }  | unset %unbanner on | .timer 1 10 .set %unbanner on
#protect end
