Project

General

Profile

$mask » History » Version 6

Per Amundsen, 07/27/2017 06:42 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 6 Per Amundsen
25
10 to 19 uses the same masks as 0 to 9, but instead of using a * wildcard to replace portions of the host, AdiIRC uses ? wildcards to replace the numbers in the address.
26 1 Per Amundsen
27
*Example*
28
29
<pre>
30
; Format 'nick!ident@host' using type '3'.
31
//echo -ag $mask(nick!ident@host,3)
32
</pre>