Project

General

Profile

$mask » History » Version 5

Per Amundsen, 08/13/2015 11:06 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 5 Per Amundsen
*$mask(address,type)*
4 1 Per Amundsen
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 4 Per Amundsen
<notextile>0 - *!ident@host</notextile>
15
<notextile>1 - *!*ident@host</notextile>
16
<notextile>2 - *!*@host</notextile>
17
<notextile>3 - *!*ident@*.host</notextile>
18
<notextile>4 - *!*@*.host</notextile>
19
<notextile>5 - nick!ident@host</notextile>
20
<notextile>6 - nick!*ident@host</notextile>
21
<notextile>7 - nick!*@host</notextile>
22
<notextile>8 - nick!*ident@*.host</notextile>
23
<notextile>9 - nick!*@*.host</notextile>
24 1 Per Amundsen
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>