mIRC Home    About    Download    Register    News    Help

Print Thread
#174446 07/04/07 10:25 PM
Joined: Apr 2007
Posts: 3
Y
yzerman Offline OP
Self-satisified door
OP Offline
Self-satisified door
Y
Joined: Apr 2007
Posts: 3
$nick(#mIRC,0) according to the help file, returns the total number of nicknames on #mIRC

However I have found that in 6.17 and in 6.21 it actually returns the color code char (ctrl+K) before the number.

example:
There are 3 ops, 1 voiced and 3 regular users on #mIRC.
Code:
echo $nick(#mIRC,0,a,o) non ops present


will return
"non ops present"

instead of
"4 non ops present"

Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
The first parameter of /echo will always be treated as a color code.
Code:
echo -a $nick(#mIRC,0,a,o) non ops present

Works as expected.


Those who can, cannot. Those who cannot, can.
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Look at the syntax for /echo by typing /help /echo

Joined: Apr 2007
Posts: 3
Y
yzerman Offline OP
Self-satisified door
OP Offline
Self-satisified door
Y
Joined: Apr 2007
Posts: 3
Originally Posted By: hixxy
Look at the syntax for /echo by typing /help /echo


frown

right, thanks guys


Link Copied to Clipboard