mIRC Home    About    Download    Register    News    Help

Print Thread
Bug with $hget(hashtable, N).data #175264 19/04/07 10:57 PM
Joined: Dec 2002
Posts: 580
N
NaquadaServ Offline OP
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
If letters are used for N, it evaluates to zero and returns $hget(hashtable, 0).data, rather than return $null or throwing an error.


NaquadaBomb
www.mirc-dll.com
Re: Bug with $hget(hashtable, N).data [Re: NaquadaServ] #175268 19/04/07 11:21 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The same is true of virtually all of mIRC's identifiers - bad input reverts to default parameters or 0. I doubt it's a bug but rather by design. Whether that's a good thing is another matter, but if each identifier with this behaviour gets reported as a bug separately there's gonna be a lot of reading to do on this forum.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: Bug with $hget(hashtable, N).data [Re: NaquadaServ] #175272 20/04/07 12:05 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252

Re: Bug with $hget(hashtable, N).data [Re: starbucks_mafia] #175283 20/04/07 02:22 AM
Joined: Dec 2002
Posts: 580
N
NaquadaServ Offline OP
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Actually this will only happen (but perhaps doesn't in all cases) for identifer parameters that only accept numbers... So an identifer like $chan(#chan) / $chan(1) would not have the problem...

It has an aspect of $calc bug I suppose, $calc has other problems though.


NaquadaBomb
www.mirc-dll.com