local alias executes global alias? - 25/08/06 12:26 PM
I know that mIRC executes a local alias instead of the same-named global alias if the alias name is called from the same script where the alias -l aliasname is located.
Is there a way to override the way mIRC handles local vs global alias?
Example:
located in 1st script, script1.mrc
alias -l test { return testlocal $test }
alias testlocal { return $test }
located in 2nd script, script2.mrc
alias test { return testglobal }
located in 3rd script, script3.mrc
alias testglobal { return $test }
//echo -a $testglobal
...returns the non-local alias in script2.mrc
//echo -a $testlocal
...returns the local alias located in the same file
1. Is there a way for the local $test alias to also return the value from the global alias?
2. Is there a way for a script in a different script than script1.mrc, or from the commandline, to access the local alias in script1.mrc?
3. Is there a way for another alias in script1.mrc to call the global $test alias instead of the local one?
thanks
Is there a way to override the way mIRC handles local vs global alias?
Example:
located in 1st script, script1.mrc
alias -l test { return testlocal $test }
alias testlocal { return $test }
located in 2nd script, script2.mrc
alias test { return testglobal }
located in 3rd script, script3.mrc
alias testglobal { return $test }
//echo -a $testglobal
...returns the non-local alias in script2.mrc
//echo -a $testlocal
...returns the local alias located in the same file
1. Is there a way for the local $test alias to also return the value from the global alias?
2. Is there a way for a script in a different script than script1.mrc, or from the commandline, to access the local alias in script1.mrc?
3. Is there a way for another alias in script1.mrc to call the global $test alias instead of the local one?
thanks