mIRC Home    About    Download    Register    News    Help

Topic Options
#175264 - 19/04/07 11:57 PM Bug with $hget(hashtable, N).data
NaquadaServ Offline
Fjord artisan

Registered: 12/12/02
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

Top
#175268 - 20/04/07 12:21 AM Re: Bug with $hget(hashtable, N).data [Re: NaquadaServ]
starbucks_mafia Offline
Hoopy frood

Registered: 09/12/02
Posts: 2962
Loc: Norwich, UK
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.

Top
#175272 - 20/04/07 01:05 AM Re: Bug with $hget(hashtable, N).data [Re: NaquadaServ]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada

Top
#175283 - 20/04/07 03:22 AM Re: Bug with $hget(hashtable, N).data [Re: starbucks_mafia]
NaquadaServ Offline
Fjord artisan

Registered: 12/12/02
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

Top