mIRC Home    About    Download    Register    News    Help

Print Thread
Two bugs found: $isfile & chatlinks #124200 03/07/05 11:53 AM
Joined: Apr 2003
Posts: 10
S
SeaEndSkyWay Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Apr 2003
Posts: 10
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.

Re: Two bugs found: $isfile & chatlinks #124201 03/07/05 12:06 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
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.


New username: hixxy
Re: Two bugs found: $isfile & chatlinks #124202 03/07/05 12:46 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: Two bugs found: $isfile & chatlinks #124203 03/07/05 03:07 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
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


New username: hixxy
Re: Two bugs found: $isfile & chatlinks #124204 03/07/05 03:29 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Seems a security measure.