mIRC Homepage
Posted By: SeaEndSkyWay Two bugs found: $isfile & chatlinks - 03/07/05 11:53 AM
bugs in mIRC 6.16:

1. $isfile()

A file with name "ip" is ignored by $isfile().
Example:
Create a file named "ip.txt" in mirc directory,
then //echo -a $isfile(ip.txt)
returns $false .

2. chatlink port

First, in mirc Options dialog, IRC -> Catcher -> chat links,
uncheck "Confirm requests". Then, click on a chatlink, mirc
will connect to a wrong port number.
Posted By: tidy_trax Re: Two bugs found: $isfile & chatlinks - 03/07/05 12:06 PM
Quote:
1. $isfile()

A file with name "ip" is ignored by $isfile().
Example:
Create a file named "ip.txt" in mirc directory,
then //echo -a $isfile(ip.txt)
returns $false .


That's also the case for prn, con, shadow, nul and various others.
Anyway, it's not a bug.
Yes but that's not strictly true. The name "ip" may be restricted as a device name but a file called "ip.txt" (or even just "ip" for that matter) in any given directory is perfectly acceptable in Windows.
Posted By: tidy_trax Re: Two bugs found: $isfile & chatlinks - 03/07/05 03:07 PM
I'm aware of that. However, if mIRC is intentionally programmed not to write to those filenames (which it is, as Khaled said) then it's not a bug smile
Posted By: mIRCManiac Re: Two bugs found: $isfile & chatlinks - 03/07/05 03:29 PM
Seems a security measure.
© mIRC Discussion Forums