Advertisement
Iire

alias priority basics

Sep 2nd, 2014
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. Basics of alias priorities in mIRC:
  2. -------------------------
  3. When dealing with multiple aliases of the same name across multiple files in mIRC, the alias that gets called is context dependent.
  4.  
  5. -- First, note that there is a difference between calling an alias as a command, and calling it as an identifier: Specifically, you
  6. cannot override built-in identifiers with aliases of the same name, but you CAN override built in commands in-this manner.
  7.  
  8. -- The priority for alias commands of the same name is as follows:
  9. When called from the editbox, the first (global) instance of the alias in the topmost file is triggered. In this case, aliases
  10. defined in the aliases tab take precedence over those defined in the remote tab... For instance, if you have
  11. "test1 echo -ga first" in a file in the alias tab, and "alias test1 echo -ga second" in the remote tab, running "test1"
  12. from the editbox will echo "first".
  13.  
  14. When called within a script file, the alias defined in that script file takes precedence. For example, if you have
  15. "alias test1 echo -ga first" and "alias test2 test1" in one file, and "alias test1 echo -ga second" and "alias test3 test1" in
  16. another file, calling "test2" will execute the first file's test1 alias and echo "first", while calling "test3" will execute the
  17. second file's test1 alias and echo "second".
  18.  
  19. 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
  20. file, the topmost alias in the file takes priority.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement