Project

General

Profile

$mask » History » Revision 4

Revision 3 (Per Amundsen, 08/13/2015 11:05 AM) → Revision 4/8 (Per Amundsen, 08/13/2015 11:05 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 0 - *!ident@host</notextile> *!ident@host 
 <notextile>1 1 - *!*ident@host</notextile> *!*ident@host 
 <notextile>2 2 - *!*@host</notextile> *!*@host 
 <notextile>3 3 - *!*ident@*.host</notextile> *!*ident@*.host 
 <notextile>4 4 - *!*@*.host</notextile> *!*@*.host 
 <notextile>5 5 - nick!ident@host</notextile> nick!ident@host 
 <notextile>6 6 - nick!*ident@host</notextile> nick!*ident@host 
 <notextile>7 7 - nick!*@host</notextile> nick!*@host 
 <notextile>8 8 - nick!*ident@*.host</notextile> nick!*ident@*.host 
 <notextile>9 9 - nick!*@*.host</notextile> nick!*@*.host 
 10-19 - TODO 

 *Example* 

 <pre> 
 ; Format 'nick!ident@host' using type '3'. 
 //echo -ag $mask(nick!ident@host,3) 
 </pre>