mIRC Home    About    Download    Register    News    Help

Print Thread
#144967 16/03/06 10:09 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
I was playing with $calc and I noticed that if I echo an entry that will return zero, I get * /echo: insufficient parameters. The funny is that it only happens when I don't define a target for the echo (-a, -s, etc), and only when the answer is the only value in the string. Apparently mIRC reads the zero as $null or something..

//echo $calc(2-2) -> * /echo: insufficient parameters
//echo -a $calc(2-2) -> 0
//echo Answer: $calc(2-2) -> Answer: 0


Not really a oh-my-god-it's-gonna-explode bug but I thought I should post it :P


"All we are saying is give peace a chance" -- John Lennon
#144968 16/03/06 10:11 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
When the first parameter of /echo is given as a number mIRC uses it as the colour to echo the text in. In this case you're giving /echo a colour and no text, hence insufficient parameters.

#144969 17/03/06 12:15 AM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Ohhh.. hadn't thought of that :tongue:

Ty, cheers wink


"All we are saying is give peace a chance" -- John Lennon

Link Copied to Clipboard