mIRC Home    About    Download    Register    News    Help

Print Thread
#230344 05/03/11 02:48 AM
Joined: Jun 2003
Posts: 81
T
TRT Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Jun 2003
Posts: 81
Having an alias that starts with "cd" as its name will not be called when used as an identifier.

seems to be an older issue, tested on clean install

That took some time to track down! laugh

Last edited by TRT; 05/03/11 03:13 AM.
TRT #230346 05/03/11 04:09 AM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
Confirmed, but only if the alias is used as a $identifier:
Code:
alias cdthis { 
  $iif($isid,return,echo -a) TRIGGERED with $iif($isid,$!cdthis,/cdthis)
}
alias test {
  /cdthis
  echo -a $cdthis
}
Echos
Quote:
TRIGGERED with /cdthis
* /echo: insufficient parameters (line 6, script1.mrc)


I am SReject
My Stuff
TRT #230347 05/03/11 04:10 AM
Joined: Feb 2006
Posts: 546
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
this applies to a few other strings of text, is intentional, and is documented in versions.txt:

Quote:

02/02/2000 - mIRC v5.7

[ ... ]

100. Changed parsing method for most identifiers so that your custom
identifiers will now work even if they begin with the same letters
as internal identifiers.

Directory related identifiers have not been updated, eg. $mircdir,
$getdir, $cd, etc. since many widely used scripts append text
directly to them, ie.:

//splay $file="Select wave:" $mircdirsounds\

Instead of using the (better) format:

//splay $file="Select wave:" $mircdir $+ sounds\


$cd is used in on SERV to return the currently selected directory, and appears in /help $cd


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
jaytea #230348 05/03/11 04:15 AM
Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
Ok, thank you smile


I am SReject
My Stuff

Link Copied to Clipboard