$mask » History » Revision 7
Revision 6 (Per Amundsen, 07/27/2017 06:42 AM) → Revision 7/8 (Per Amundsen, 05/24/2018 10:10 AM)
_Added in 1.9.0_ *$mask(address,type)* Returns address with a mask specified by type. *Parameters* address - Address to format. type - Type of format to use. *Available types* <notextile>0 - *!ident@host</notextile> <notextile>1 - *!*ident@host</notextile> <notextile>2 - *!*@host</notextile> <notextile>3 - *!*ident@*.host</notextile> <notextile>4 - *!*@*.host</notextile> <notextile>5 - nick!ident@host</notextile> <notextile>6 - nick!*ident@host</notextile> <notextile>7 - nick!*@host</notextile> <notextile>8 - nick!*ident@*.host</notextile> <notextile>9 - nick!*@*.host</notextile> 10 to 19 uses the same masks as 0 to 9, but instead of using a * [[Scripting_Wildcards|wildcard]] wildcard to replace portions of the host, AdiIRC uses ? [[Scripting_Wildcards|wildcards]] wildcards to replace the numbers in the address. *Example* <pre> ; Format 'nick!ident@host' using type '3'. //echo -ag $mask(nick!ident@host,3) </pre>