mIRC Home    About    Download    Register    News    Help

Print Thread
Multiple whois/kick/ban #56516 21/10/03 01:10 PM
Joined: Oct 2003
Posts: 14
A
Anyone Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Oct 2003
Posts: 14
I'm an @ in a few chans and was wondering if there's a way i could whois (don't mean /who #), kick and/or ban multiple users. Are there any scripts that would allow that?

Thanx in advance smile

Re: Multiple whois/kick/ban #56517 21/10/03 01:14 PM
Joined: Sep 2003
Posts: 98
N
neznani Offline
Babel fish
Offline
Babel fish
N
Joined: Sep 2003
Posts: 98
i have a cool script that kickes 6 people in a blink of an eye, but it's not for public


www.stwar.us.to
IRCnet - #stwar
Re: Multiple whois/kick/ban #56518 21/10/03 01:15 PM
Joined: Jul 2003
Posts: 24
C
cdwriter Offline
Ameglian cow
Offline
Ameglian cow
C
Joined: Jul 2003
Posts: 24
IRC servers supports multiple whois:
/whois nick1,nick2,nicki3,nick4
mIRC supports multiple kicks:
/kick nick1,nick2,nick3,nick4 <reason>

try that with the /ban command

Re: Multiple whois/kick/ban #56519 21/10/03 01:23 PM
Joined: Oct 2003
Posts: 14
A
Anyone Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Oct 2003
Posts: 14
Didn't make myself clear it seems, I know i can whois multiple ppl like with (/whois nick1,nick2,...) but i want to have that in pop-ups or something I tried messing with: "Whois:/whois $$1" by adding $2 and so on but that didn't work.
@neznani good 2 know u have one smirk

Re: Multiple whois/kick/ban #56520 21/10/03 01:27 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
menu nicklist {
whois selected: if (!$snicks) { return } | whois $snicks
}


new username: tidy_trax
Re: Multiple whois/kick/ban #56521 21/10/03 01:33 PM
Joined: Oct 2003
Posts: 53
W
WhoJoeDaddy Offline
Babel fish
Offline
Babel fish
W
Joined: Oct 2003
Posts: 53
no need for if

menu nicklist {
whois selected:whois $$snicks
}

Re: Multiple whois/kick/ban #56522 21/10/03 01:35 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
shh, i always forget :tongue:


new username: tidy_trax
Re: Multiple whois/kick/ban #56523 21/10/03 01:48 PM
Joined: Oct 2003
Posts: 14
A
Anyone Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Oct 2003
Posts: 14
Thx so much that works great smile just need the multiple kick and ban and i'll be happy...hope it's not 2 much.
If all 3 could be in one script that would be even better.

Last edited by Anyone; 21/10/03 01:50 PM.
Re: Multiple whois/kick/ban #56524 21/10/03 02:05 PM
Joined: Oct 2003
Posts: 53
W
WhoJoeDaddy Offline
Babel fish
Offline
Babel fish
W
Joined: Oct 2003
Posts: 53
Code:
menu nicklist {
  Mass Commands
  .Whois:whois $$snicks
  .Kick:masskick $$snicks
  .Ban:massban $$snicks
}
alias masskick {
  if (!$chan) return
  var %i = 1
  while ($gettok($1-,%i,44) != $null) {
    var %nick = $gettok($1-,%i,44)
    if ((%nick == $me) || (%nick == %lastnick)) inc %i
    else {
      kick # %nick Mass Kick
      var %lastnick = %nick
    }
  }
}

alias massban {
  if (!$chan) return
  var %i = 1
  while ($gettok($1-,%i,44) != $null) {
    var %nick = $gettok($1-,%i,44)
    if ((%nick == $me) || (%nick == %lastnick)) inc %i
    else {
      ban -k # %nick 3
      var %lastnick = %nick
    }
  }
}

Last edited by WhoJoeDaddy; 21/10/03 02:17 PM.
Re: Multiple whois/kick/ban #56525 21/10/03 02:11 PM
Joined: Oct 2003
Posts: 14
A
Anyone Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Oct 2003
Posts: 14
WhoJoeDaddy it works great, thx for your help much appreciated.

Re: Multiple whois/kick/ban #56526 21/10/03 02:19 PM
Joined: Oct 2003
Posts: 53
W
WhoJoeDaddy Offline
Babel fish
Offline
Babel fish
W
Joined: Oct 2003
Posts: 53
Changed it .. use the updated version so it doesn't kick you.

Re: Multiple whois/kick/ban #56527 21/10/03 02:50 PM
Joined: Oct 2003
Posts: 14
A
Anyone Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Oct 2003
Posts: 14
Thought there was no room for improvement...boy was i wrong thx again smile

Re: Multiple whois/kick/ban #56528 21/10/03 03:07 PM
Joined: Oct 2003
Posts: 53
W
WhoJoeDaddy Offline
Babel fish
Offline
Babel fish
W
Joined: Oct 2003
Posts: 53
most welcome smile

Re: Multiple whois/kick/ban #56529 21/10/03 08:40 PM
Joined: Sep 2003
Posts: 156
B
bleach Offline
Vogon poet
Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
Your ban module will flood you.. so you can try this instead of yours to don't be disconnect by flood
alias massban { who # | .timerban 1 5 banmodule $chan }
alias banmodule {
if ($1) $&
var %i = 1
while (%i <= $nick($1,0)) {
if ($nick($1,%i) == $me) inc %i
%addr = $+(%addr,$chr(32),$address($nick($1,%i),3))
if ($numtok(%addr,32) == 4) {
mode $1 $+(+,$str(b,4)) %addr
unset %addr
}
inc %i
}
if (%addr) mode $1 $+(+,$str(b,$numtok(%addr,32))) %addr
unset %addr
}


Re: Multiple whois/kick/ban #56530 22/10/03 08:17 AM
Joined: Oct 2003
Posts: 14
A
Anyone Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Oct 2003
Posts: 14
I banned quite a few ppl @ once and didn't get flooded with the previous script, what kind of number r u talking about, so that i'll get flooded. Also (directed at other scripters) since i'm a total n00b when it comes to mIRC scripting is that mass ban code posted by bleach really better then the one by WhoJoeDaddy would like to get some kind of confirmation, thx for all your efforts ppl.

Re: Multiple whois/kick/ban #56531 22/10/03 01:20 PM
Joined: Oct 2003
Posts: 273
E
EVH Offline
Fjord artisan
Offline
Fjord artisan
E
Joined: Oct 2003
Posts: 273
Just a different way to do it is all.

Re: Multiple whois/kick/ban #56532 22/10/03 01:21 PM
Joined: Sep 2003
Posts: 156
B
bleach Offline
Vogon poet
Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
I am talking about WhoJoeDaddy's ban module..
of course it couldn't disconnect you when using on few user.. My module could work properly on 60 users or more (that depends on your connection and the server)