mIRC Home    About    Download    Register    News    Help

Print Thread
#110483 07/02/05 03:38 PM
Joined: Jan 2005
Posts: 75
Z
ztnaraM Offline OP
Babel fish
OP Offline
Babel fish
Z
Joined: Jan 2005
Posts: 75
I have this problem of kicking clones in a channel, i have this in aliases

Code:
/k .ial $1 | .raw -q mode $chan - $+ $str(o,%ial.[censored]) %ial.nicks.test | if ($2 == $null) .mode # -Q $+ $crlf $+ kick # $replace(%ial.nicks.test,$chr(32),$chr(44)) : wHOMP! | else raw -q kick # $replace(%ial.nicks.test,$chr(32),$chr(44)) : $+ $2-
  


and this in remotes

Code:
alias ial {
  set %i 1
  set %ial.nicks.test ""
  while ($ial($address($1,2),%i).nick != $null) {
    set %ial.nicks.test %ial.nicks.test $ial($address($1,2),%i).nick
    inc %i
  }
  dec %i
  set %ial.[censored] %i
}  


it seems to only kick the first clone it comes across
could it be down to the var --
%ial.nicks.test ninjah nigguh ninjitsu t4nk warriah

#110484 07/02/05 03:44 PM
Joined: Jan 2005
Posts: 75
Z
ztnaraM Offline OP
Babel fish
OP Offline
Babel fish
Z
Joined: Jan 2005
Posts: 75
how is it supposed to loop to get the other clones then?

#110485 07/02/05 03:46 PM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
n/m sorry about that .. I realized you weren't kicking each
clone .. had you kicked each clone you wouldn't inc %i
I deleted the post.

#110486 07/02/05 03:48 PM
Joined: Jan 2005
Posts: 75
Z
ztnaraM Offline OP
Babel fish
OP Offline
Babel fish
Z
Joined: Jan 2005
Posts: 75
lol it's supposed to kick %ial.nicks.test ninjah nigguh ninjitsu t4nk warriah one after another as quick as possible

#110487 07/02/05 03:54 PM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
well I've never seen a network that allowed multiple targets
for the kick command .. you would have to use a while loop

var %i = 1
while ($gettok(%ial.nicks.test,%i,32) != $null) {
kick # $ifmatch <reason>
inc %i
}

Last edited by mIRCManiac; 07/02/05 03:55 PM.
#110488 07/02/05 04:04 PM
Joined: Jan 2005
Posts: 75
Z
ztnaraM Offline OP
Babel fish
OP Offline
Babel fish
Z
Joined: Jan 2005
Posts: 75
if you look at the first post i made you will see there's a while loop in it

smirk

#110489 07/02/05 04:09 PM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Yes I see that, but in the other alias when you do the actual
kicks, there is no while loop, you're trying to kick multiple
targets.

here ..
else raw -q kick # $replace(%ial.nicks.test,$chr(32),$chr(44)) : $+ $2-

#110490 07/02/05 04:14 PM
Joined: Jan 2005
Posts: 75
Z
ztnaraM Offline OP
Babel fish
OP Offline
Babel fish
Z
Joined: Jan 2005
Posts: 75
works on ircxpro, so it's the ircd that's being the ass..


Link Copied to Clipboard