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 » Mon Nov 13, 2006 8:13 pm

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 » Mon Nov 13, 2006 11:08 pm

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 » Tue Nov 14, 2006 4:18 am

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 » Tue Nov 14, 2006 5:37 am

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 » Tue May 29, 2007 9:26 am

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 limest0ne@olivegreen.org

RBH
Posts: 26
Joined: Wed Feb 14, 2007 12:37 pm

Post by RBH » Tue May 29, 2007 10:41 am

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: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth » Tue May 29, 2007 4:12 pm

/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