mIRC Homepage

Incorrect number of items in list

Posted By: RusselB

Incorrect number of items in list - 21/03/08 08:31 PM

It's been noted, and confirmed, that when more than one nick is supplied to my Whois Dialog (full code available here), the drop down list that is populated using /didtok 2 32 %nicks duplicates all but the first nick in the drop down box. I have confirmed that the variable contains the correct information.

I'd like to figure out why this is happening and/or a work-around for the problem.
Posted By: starbucks_mafia

Re: Incorrect number of items in list - 21/03/08 09:01 PM

Only took a brief look but this appears to be the problem:
Code:
didtok Whois 2 32 %nicks
...
if $numtok(%nicks,32) > 1 {
  didtok Whois 2 32 $gettok(%nicks,2-,32)
}
Posted By: RusselB

Re: Incorrect number of items in list - 21/03/08 09:18 PM

That actually makes the problem worse, as it's giving me the 2nd, 3rd, 4th, etc. nicks 3 times, compared to twice in the original code.
Posted By: starbucks_mafia

Re: Incorrect number of items in list - 21/03/08 09:22 PM

I wasn't posting a solution, I was highlighting the problem. The code I posted is already present in your script. The second use of didtok is 9 lines down from the first, and that is what is causing your problem.
Posted By: RusselB

Re: Incorrect number of items in list - 21/03/08 09:26 PM

ahh.. ok..thanks.. I'll try it and get back on the situation

Situation resolved.. thanks
© 2019 mIRC Discussion Forums