Project

General

Profile

$mask » History » Version 2

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
<notextile>
15
0 - *!ident@host
16 1 Per Amundsen
1 - *!*ident@host
17
2 - *!*@host
18
3 - *!*ident@*.host
19
4 - *!*@*.host
20
5 - nick!ident@host
21
6 - nick!*ident@host
22
7 - nick!*@host
23
8 - nick!*ident@*.host
24
9 - nick!*@*.host
25
10-19 - TODO
26
</notextile>
27
28
*Example*
29
30
<pre>
31
; Format 'nick!ident@host' using type '3'.
32
//echo -ag $mask(nick!ident@host,3)
33
</pre>