Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Basics of alias priorities in mIRC:
- -------------------------
- When dealing with multiple aliases of the same name across multiple files in mIRC, the alias that gets called is context dependent.
- -- First, note that there is a difference between calling an alias as a command, and calling it as an identifier: Specifically, you
- cannot override built-in identifiers with aliases of the same name, but you CAN override built in commands in-this manner.
- -- The priority for alias commands of the same name is as follows:
- When called from the editbox, the first (global) instance of the alias in the topmost file is triggered. In this case, aliases
- defined in the aliases tab take precedence over those defined in the remote tab... For instance, if you have
- "test1 echo -ga first" in a file in the alias tab, and "alias test1 echo -ga second" in the remote tab, running "test1"
- from the editbox will echo "first".
- When called within a script file, the alias defined in that script file takes precedence. For example, if you have
- "alias test1 echo -ga first" and "alias test2 test1" in one file, and "alias test1 echo -ga second" and "alias test3 test1" in
- another file, calling "test2" will execute the first file's test1 alias and echo "first", while calling "test3" will execute the
- second file's test1 alias and echo "second".
- NOTE -- If you have multiple aliases by the same name in a single file, and you call that alias via another script in the same
- file, the topmost alias in the file takes priority.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement