_Added in 1.9.0_
*$mask(address,type)*
Returns address with a mask specified by type.
*Parameters*
table(ktable).
|*Parameter*|*Description*|
| address | Address to format. |
| type | Type of format to use. |
*Available types*
table(ktable).
|*Type*|*Description*|
| 0 | *!ident@host |
| 1 | *!*ident@host |
| 2 | *!*@host |
| 3 | *!*ident@*.host |
| 4 | *!*@*.host |
| 5 | nick!ident@host |
| 6 | nick!*ident@host |
| 7 | nick!*@host |
| 8 | nick!*ident@*.host |
| 9 | nick!*@*.host |
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.
*Example*
; Format 'nick!ident@host' using type '3'.
//echo -ag $mask(nick!ident@host,3)