$mask » History » Version 3
Per Amundsen, 08/13/2015 11:05 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | $mask(address,type) |
||
4 | |||
5 | Returns address with a mask specified by type. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | address - Address to format. |
||
10 | type - Type of format to use. |
||
11 | |||
12 | *Available types* |
||
13 | |||
14 | 2 | Per Amundsen | 0 - *!ident@host |
15 | 1 | Per Amundsen | 1 - *!*ident@host |
16 | 2 - *!*@host |
||
17 | 3 - *!*ident@*.host |
||
18 | 4 - *!*@*.host |
||
19 | 5 - nick!ident@host |
||
20 | 6 - nick!*ident@host |
||
21 | 7 - nick!*@host |
||
22 | 8 - nick!*ident@*.host |
||
23 | 9 - nick!*@*.host |
||
24 | 10-19 - TODO |
||
25 | |||
26 | *Example* |
||
27 | |||
28 | <pre> |
||
29 | ; Format 'nick!ident@host' using type '3'. |
||
30 | //echo -ag $mask(nick!ident@host,3) |
||
31 | </pre> |