mIRC Home    About    Download    Register    News    Help

Print Thread
$isalias().alias bug #76265 23/03/04 09:48 PM
Joined: Nov 2003
Posts: 25
N
NeoN Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2003
Posts: 25
$isalias().alias only returns the first line of an alias.

Code:
in aliases:

test {
  ; stuff here
}

from editbox:

//echo -a $isalias(test).alias
 


output: {

Re: $isalias().alias bug #76266 23/03/04 09:52 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
i noticed that, but i guessed it was intentional, considering most identifiers only return one line of text.


New username: hixxy
Re: $isalias().alias bug #76267 24/03/04 12:52 AM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
I could've sworn it said somewhere that it only worked for single-line aliases, but I can't find any documentation on that.

Anyway, a variable can't permanently store multi-line strings and you'd very often overrun the ~950 char limit so it wouldn't be much good in a majority of cases. Perhaps it would be good as a feature suggestion to have a &binvar as a second parameter to hold the entire alias definition.


Spelling mistakes, grammatical errors, and stupid comments are intentional.