mIRC Home    About    Download    Register    News    Help

Print Thread
A
Armitage
Armitage
A
Does anyone know how to return the number of people that are on your ignore list?

$ignore(2) for instance returns the 2nd person on the list..
some other identifiers return the total number if you put a zero, like $query(0). Any idea's?

P
pheonix
pheonix
P
alias ignore.count {
var %i 1
var %g 0
while ($ignore(%i) != $null) {
inc %g 1
inc %i
}
//echo -a %g
}
usage: /ignore.count

Last edited by pheonix; 09/07/03 05:11 PM.
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
$ignore(0) works fine for me on 6.03

A
Armitage
Armitage
A
Ah, well, both of your suggestions worked, thanks alot smile

Yeah I just noticed it does work, I was doing:
//echo $ignore(0)

And getting an insufficiant paramiters, i needed the -a after the //echo.

Thanks again you two. grin

P
pheonix
pheonix
P
np smile
/me feels like an idiot grin


Link Copied to Clipboard