can you use any identifiers inside rgb identifier? like: alias myidentifier return 100,100,100 echo -a $myidentifier (works) echo -a $rgb($myidentifier) (it doesnt)
Interesting that [ ] worked when $eval() wouldn't. Good job finding that, though it does mean perhaps a rethink on when to use [ ] and when to use $eval( ,2).
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
That's because [ ] brackets and $eval are not the same thing; they are designed for different purposes. $eval evaluates any variables/identifiers in the string and only that. Brackets, otoh, control the order of evaluation, something that $eval was not designed to do of course. So, in $rgb( [ %var ] ) , mirc evaluates %var before it deals with $rgb. (contrary to $rgb(%var), in which %var is evaluated after $rgb is parsed, so %var is considered a parameter).