mIRC Home    About    Download    Register    News    Help

Topic Options
#35177 - 09/07/03 06:07 PM Returning how many people are in ignore list
Armitage Offline
Nutrimatic drinks dispenser

Registered: 09/07/03
Posts: 5
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?

Top
#35178 - 09/07/03 06:09 PM Re: Returning how many people are in ignore list
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
alias ignore.count {
var %i 1
var %g 0
while ($ignore(%i) != $null) {
inc %g 1
inc %i
}
//echo -a %g
}
usage: /ignore.count


Edited by pheonix (09/07/03 06:11 PM)
_________________________
new username: tidy_trax

Top
#35179 - 09/07/03 06:13 PM Re: Returning how many people are in ignore list
Collective Offline
Planetary brain

Registered: 10/12/02
Posts: 3138
Loc: London, UK
$ignore(0) works fine for me on 6.03

Top
#35180 - 09/07/03 06:15 PM Re: Returning how many people are in ignore list
Armitage Offline
Nutrimatic drinks dispenser

Registered: 09/07/03
Posts: 5
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

Top
#35181 - 09/07/03 06:17 PM Re: Returning how many people are in ignore list
pheonix Offline
Hoopy frood

Registered: 06/05/03
Posts: 2265
np smile
/me feels like an idiot grin
_________________________
new username: tidy_trax

Top