This is a simple Deop, Ban, Kick protection that lets you turn it on and off. Try it out and see how it works.
#prot off
on @1:DEOP:#: { if ($opnick == $me) && ($me isop $chan) { /cs op $chan $me | /mode # +b $nick | /kick # $nick Deop Protection }
}
on @1:kick:#: { if ($knick == $me) && ($me isop $chan) { /join # | /mode # -o $nick | /mode # +b $nick | /kick # $nick Kick Protection }
}
on @1:ban:#: { if ($bnick == $me) && ($me isop $chan) { /cs unban # | /mode # -b $bnick | /mode # -o $nick | /mode # +b $nick | /kick # $nick Ban Protection }
}
#prot end
menu channel,status,menu,nicklist {
-=[ Protections ]=-
.On:/enable #prot
.Off:/disable #prot
}