kick ban remote manual

By muller87 on Mar 04, 2009

just following into the scripts..

on *:load:{
  if ($version < 5.61) echo -a  $+ $colour(info2) $+ *** KickBan Script!. | beep 
  echo -a  4Loaded KickBan Script v2! | echo -a  4Please type: !kb <nick> in channel or /kb to kickban! | beep 5
}
alias kickban {
  if ($1 == $me) { msg $2 $me Trying to kick yourself now? $me  | halt }
  if ($me !isop $chan) { msg $me OP ME FIRST! $2 | halt }
  if (!($1 isin $2)) { msg $me $1 isn't on $2 | halt }
  else { 
    mode $2 +b $address($1,4) | kick $2 $1 $4- 0(12‹ $+ %kick.count $+ 12›0 | inc %kick.count 1 
  }
}
on *:INPUT:#:{ if ($1 == !kb) {
    kickban $$2 $chan $nick $3-
  }
}
alias kb {
  if ($1 == $me) { msg $2 $me Trying to kick yourself now? $me  | halt }
  if ($me !isop $chan) { msg $me OP ME FIRST! $2 | halt }
  if (!($1 isin $2)) { msg $me $1 isn't on $2 | halt }
  else {
    var %kb.channel $$?="Channel"
    var %kb.nick $$?="Ban Nick"
    mode %kb.channel +b %kb.nick | kick %kb.channel %kb.nick 0(12‹ $+ %kick.count $+ 12›0 | inc %kick.count 1
  }
}

Comments

Sign in to comment.
muller87   -  Mar 05, 2009

its working..

 Respond  
slacker   -  Mar 04, 2009

why so much stuff for a kick ban?? why not just do..

on *:INPUT:#:{ if ($me isop # && $1 == !kb) { inc %kick.count | ban -k # $2 4 %kick.count }
 Respond  
sunslayer   -  Mar 04, 2009

wouldnt

on *:load:{
  if ($version < 5.61) echo -a  $+ $colour(info2) $+ *** KickBan Script!. | beep 
  echo -a  4Loaded KickBan Script v2! | echo -a  4Please type: !kb <nick> in channel or /kb to kickban! | beep 5
}

only work if you had version before 5.61?

instead of using $$? in the alias you could just use /ban

 Respond  
Aucun50   -  Mar 04, 2009

"$me (there's two here) | halt }" to many spaces "$me | halt }"

 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.