mass kick?

These are old archives. They are kept for historic purposes only.
Post Reply
SpaceDoG
Posts: 301
Joined: Mon Feb 27, 2006 5:44 am
Contact:

mass kick?

Post 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?
Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Post 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
}
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.
SpaceDoG
Posts: 301
Joined: Mon Feb 27, 2006 5:44 am
Contact:

Post 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.
Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Post by Grunt »

1. For everything, there's help <thingy>; Use /help $snick
2. $snick means selected nicknames :P
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.
LimE
Posts: 2
Joined: Tue May 15, 2007 2:32 am

Post 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]
RBH
Posts: 26
Joined: Wed Feb 14, 2007 12:37 pm

Post 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
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post 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.
Post Reply