From WikiChip
Difference between revisions of "mirc/commands/alias"
m (Bot: Automated text replacement (-<small>Note: Individual switches were not taken into consideration.</small> +)) |
m (Bot: Automated text replacement (-Added On:.+\n?\n?\n?\n?\n? +)) |
||
Line 36: | Line 36: | ||
== Compatibility == | == Compatibility == | ||
Added: mIRC v4.5 | Added: mIRC v4.5 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 22:57, 5 July 2014
The /alias command can be used to add, replace and remove aliases. This command ONLY works for single line aliases. By default mIRC will add the alias to the first aliases script file.
Note: Trying to remove a multi-line alias will result in a "unable to remove" error message.
Synopsis
/alias [filename] <aliasname> [command]
Switches
None
Parameters
- [filename] - Optional parameter that can be used to specify which aliases file to use, the file must be already loaded.
- <aliasname> - The name of the alias to use.
- [command] - If specified, the commands that are associated with the alias (you can specify multiple commands on one line by seperating them properly with pipes), if not specified the alias is removed.
Example
;Adds a new alias by the name "cookies" ;You can now do /cookies /Alias /Cookies /me hands out the cookie jar ;We replaced the old cookies alias with this new one /Alias /Cookies /me Steals someone's cookies! ;Remove the alias /Alias /Cookies
Output:
* Added '/Cookies' alias * Replaced '/Cookies' alias * Removed '/Cookies' alias
Compatibility
Added: mIRC v4.5
See also
mIRC commands list