mIRC Home    About    Download    Register    News    Help

Print Thread
#128039 20/08/05 12:43 AM
Joined: Apr 2004
Posts: 218
P
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
Possible remove bug.
Here is my code:

Code:
remove { !remove $+($chr(44),$remove($1-,$chr(34)),$chr(44)) }


Example command:

/remove "C:\music\Usher - Burn.mp3"


(Yes, this file exist)

Output:

* /remove: no such file 'C:\mIRC\,C:\music\Usher'


Fixed easily by:

Code:
remove { !remove " $+ $remove($1-,$chr(34)) $+ " }


Output:

Correctly removes the file.


Live to Dream & Dream for Life
#128040 20/08/05 05:29 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
How the heck is that a bug?

/remove ,FILE, isnt a valid usage of the command to begin with

[ $chr(44) == , (comma), not a quotation mark ]


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
#128041 20/08/05 01:21 PM
Joined: Jan 2003
Posts: 249
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
that's a very good example of people not echoing their incorrect line to see the output before crying for a bug ...

#128042 23/08/05 04:10 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
>remove { !remove $+($chr(44),$remove($1-,$chr(34)),$chr(44)) }

I find it incredibile that ya managed to know to remove the " with chr$(34) and then didnt know to put them in using $chr(34), or just use "

#128043 29/08/05 09:49 PM
Joined: Apr 2004
Posts: 218
P
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
ROFL- my bad, didn't realised I had chr 44 ;/


Live to Dream & Dream for Life

Link Copied to Clipboard