Project

General

Profile

$mask » History » Version 8

Per Amundsen, 02/23/2023 04:59 PM

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 8 Per Amundsen
table(ktable).
10
|*Parameter*|*Description*|
11
| address | Address to format. |
12
| type | Type of format to use. |
13 1 Per Amundsen
14
*Available types*
15
16 8 Per Amundsen
table(ktable).
17
|*Type*|*Description*|
18
| 0 | <notextile>*!ident@host</notextile> |
19
| 1 | <notextile>*!*ident@host</notextile> |
20
| 2 | <notextile>*!*@host</notextile> |
21
| 3 | <notextile>*!*ident@*.host</notextile> |
22
| 4 | <notextile>*!*@*.host</notextile> |
23
| 5 | <notextile>nick!ident@host</notextile> |
24
| 6 | <notextile>nick!*ident@host</notextile> |
25
| 7 | <notextile>nick!*@host</notextile> |
26
| 8 | <notextile>nick!*ident@*.host</notextile> |
27
| 9 | <notextile>nick!*@*.host</notextile> |
28
29 6 Per Amundsen
30 7 Per Amundsen
10 to 19 uses the same masks as 0 to 9, but instead of using a * [[Scripting_Wildcards|wildcard]] to replace portions of the host, AdiIRC uses ? [[Scripting_Wildcards|wildcards]] to replace the numbers in the address.
31 1 Per Amundsen
32
*Example*
33
34
<pre>
35
; Format 'nick!ident@host' using type '3'.
36
//echo -ag $mask(nick!ident@host,3)
37
</pre>