Project

General

Profile

Alias » History » Version 12

Per Amundsen, 02/14/2023 09:03 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 7 Per Amundsen
*/alias [-l] [filename] <aliasname> <command>*
4 1 Per Amundsen
5 11 Per Amundsen
Add/remove/replace any single or multi line *(AdiIRC only)* alias.
6 7 Per Amundsen
7
*Switches*
8
9 12 Per Amundsen
table(ktable).
10
|*Switch*|*Description*|
11
| -l | Adds a local alias only available from current script. |
12 1 Per Amundsen
13
*Parameters*
14
15 12 Per Amundsen
table(ktable).
16
|*Parameter*|*Description*|
17
| [filename] | An optional alias filename to update, if no filename is specified it will use the first match or the first loaded alias file. |
18
| <aliasname> | Name of the alias to add/remove/replace. |
19
| <command> | The command(s) to be executed by the aliasname. |
20 5 Per Amundsen
21
*Example*
22 6 Per Amundsen
23 1 Per Amundsen
<pre>
24 8 Per Amundsen
; This will replace the first matching alias with the new command.
25 3 Per Amundsen
/alias /hello /me says hello
26
27 8 Per Amundsen
; To remove an existing alias:
28 3 Per Amundsen
/alias /hello
29
30 8 Per Amundsen
; If you want to add/remove/replace a alias in an existing file
31 1 Per Amundsen
/alias hello.txt /alias /me says hello
32
</pre>