ally protection on KICK/BAN

By no_body21 on Mar 18, 2007

Simply put this on your remotes
right click the nick you want to add/delete on protection list on the nicklist

kicks the kicker that kicks the nick that has been added on your protection list.

;///////Updated///////;

Ally Ban protection

menu nicklist {
  sprotection
  .add:{
    if ($istok(%spro,$1,44) == $false) { %spro = $addtok(%spro,$1,44) }
    if ($istok(%address,$1,44) == $false) { %address = $addtok(%address,$address($1,5),44) }
  }
  .del:{ %spro = $remtok(%spro,$1,44) | %spro = $remtok(%address,$address($1,5),44) }
}
on *:kick:#:{
  if ($istok(%spro,$knick,44)) {
    if $me isop # {
      kick # $nick Don't kick $knick $+ !!!
      mode # +b $address($nick,2)
    }
    else {
      %kicker = $addtok(%kicker,$nick,44)
      %kicked = $knick
      cs op # $me
    }
  }
}
on *:op:#:{
  if $opnick == $me {
    if (%kicker) {
      kick # %kicker Don't kick %kicked $+ !!!
      mode # +b $address(%kicker,2)
      unset %kicke*
    }
  }
}
on *:ban:#: {
  if ($wildtok(%address,$banmask,0,44)) {
    mode # -b+b $banmask $address($nick,2)
    kick # $nick Protected users protection Kick!!!
  }
}

Comments

Sign in to comment.
Jethro   -  Feb 21, 2010

I always thought mirc's built-in protect feature worked pretty well.

 Respond  
Alco`   -  Feb 21, 2010

Works Fine except for the fact that it will kickban yourself if you forget to remove a user you added and kickban :p

 Respond  
Alco`   -  Feb 21, 2010

Works fine .. except it includes yourself as well :p
So if you forget to delete a person and you kickban him/her you get kickbanned by yourself.

 Respond  
ermansanidhya   -  May 23, 2007

oke i will try

 Respond  
no_body21   -  Mar 20, 2007

i see
thanks, didn\'t know that since
i\'m really not using /ban -k unless i want a timer..
but, nice to know that
appreciate it.

 Respond  
DarthReven   -  Mar 20, 2007

you know you can use /ban -k with the host masks you like buy using it like this: \"/ban -k %kicker 2 Don\'t kick %kicked $+ !!!\"

 Respond  
DarthReven   -  Mar 20, 2007

you know you can use /ban -k with the host masks you like buy using it like this: \"/ban -k %kicker 2 Don\'t kick %kicked $+ !!!\"

 Respond  
no_body21   -  Mar 19, 2007

Updated:
Ban protection

 Respond  
no_body21   -  Mar 19, 2007

I\'ll make an update tomorrow..
just got home too sleepy hehe

 Respond  
thurdy   -  Mar 18, 2007

it\'s working great with me. but can this also auto-unban your protected user in case the kicker not only kicked him, but also banned him? that could be nice as well.

 Respond  
no_body21   -  Mar 18, 2007

i\'m just using ban -k when i need timer

/ban -ku600

 Respond  
no_body21   -  Mar 18, 2007

coz i\'m not a fan of that and i\'m always banning type 2 or 3

 Respond  
Lindrian   -  Mar 18, 2007

why not just use ban -k ?

 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.