Protection

By CoReY on Aug 19, 2007

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
}

Comments

Sign in to comment.
CoReY   -  Aug 19, 2007

thankss monky..:)

 Respond  
CoReY   -  Aug 19, 2007

thankss monky..:)

 Respond  
Monky   -  Aug 19, 2007

nice

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.