mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello and greetings from Zenkhausen,

I am not sure if this is bug or by design but when i try to access a not-exist file via $md5(FILE,2) it returns an scripting error and halts the code to proceed as it should only return $null to avoid that, if this is by design i cannot find any breaking backward compatibility if you change it to return $null instead code halt and error, correct me if i am wrong.

Edit: same for $sha*() identifiers, $crc() seems returns "00000000" instead of $null or accessing error.

- Thanks!

Last edited by westor; 21/10/18 11:03 AM.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
Thanks for your bug report. This is definitely by design. If the file does not exist, it should report an error. Unfortunately, $crc() cannot be changed to report an error as it would break backward compatibility.


Link Copied to Clipboard