mIRC Home    About    Download    Register    News    Help

Print Thread
#206736 23/11/08 01:28 AM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
Hi all

i can't see it ... frown
i'm trying to check a checkbox in a list.
on whois it has to check the comchans of the channels listed in the list.
here is the code that should do the trick:
Code:
if ($numeric == 319) {
    did -s Whois 25 $didwm(Whois,25,$+(*,$comchan($2,%a)))
    inc %a

I thought $2 was suppose to be the nick .... what am i doing wrong?

Bullseye #206738 23/11/08 02:08 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
From raw 319 $2 is the nick that you whois'd.

Can you supply more of the code, such as everything from the (presumably) while loop that uses %a for the channels?

I suspect that your problem is actually there, than in the code section you supplied.

As a quick write, something like this would work. Note: This may or may not fit in with your current code (I'm suspecting not, as you reference $numeric)

Code:
raw 319:*:{
  var %a = 1, %b = $comchan($2,0)
  while %a <= %b {
    did -s Whois 25 $didwm(Whois,25,$comchan($2,%a))
    inc %a
  }
}

Bullseye #206746 23/11/08 08:23 AM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
Thanks russel

I've must have been looking at it too long.
Still don't know what i had wrong i just copied and paste your coe and guess what ........ it worked.


Link Copied to Clipboard