Page 1 of 1

mass kick?

Posted: Mon Nov 13, 2006 8:13 pm
by SpaceDoG
Anyone know of a module that will allow users to do multiple kicks at the same time or should the user write something client side?

Posted: Mon Nov 13, 2006 11:08 pm
by Grunt
For what I know, the IRC RFC only allows one kick at a time. Though, you can script some irc clients to perform multiple kicks (but still one at a time). For mIRC, it would be something like:

Code: Select all

alias mkick {
  var %a = 1
  while (%a <= $snick(#,0)) {
    kick # $snick(#,%a) OUT!
    inc %a
  }
}

menu nicklist {
  Multiple kick:/mkick
}

Posted: Tue Nov 14, 2006 4:18 am
by SpaceDoG
2 things...

1. ) I can't find $snick in the mIRC help files.
2. ) Is this a select mass kick or just kicking the entire room. Users are requesting a select mass kick.

Posted: Tue Nov 14, 2006 5:37 am
by Grunt
1. For everything, there's help <thingy>; Use /help $snick
2. $snick means selected nicknames :P

Posted: Tue May 29, 2007 9:26 am
by LimE
not sure but it will be ok :P

menu nicklist {
mass kick:/kick # $$* OUT
}


---------------
IRC Network irc.globalogc.org
Website http://www.globalogc.org
Mail [email protected]

Posted: Tue May 29, 2007 10:41 am
by RBH
alias masskick {
unset %total
set %count.nick 0
set %total $nick(#,0)
:start
inc %count.nick
if (%count.nick > %total) { halt }
if ($nick(#,%count.nick) == $me) { goto start }
else { kick # $nick(#,%count.nick) | goto start }
}

an then /masskick

Posted: Tue May 29, 2007 4:12 pm
by Stealth
/me wonders why people insist on using goto instead of while...

I also don't think he was looking for a script to kick everyone from a channel.