$mask

From Scriptwiki
Revision as of 20:28, 21 November 2005 by Doomie (talk | contribs) (added link to category:IAL)

Jump to: navigation, search

Returns address with a mask specified by type.

$mask(address,type)

The available types are:

  • 0: *!user@host
  • 1: *!*user@host
  • 2: *!*@host
  • 3: *!*user@*.host
  • 4: *!*@*.host
  • 5: nick!user@host
  • 6: nick!*user@host
  • 7: nick!*@host
  • 8: nick!*user@*.host
  • 9: nick!*@*.host

You can also specify a type of 10 to 19 which correspond to masks 0 to 9, but instead of using a * wildcard to replace portions of the host, mIRC uses ? wildcards to replace the numbers in the address.

Example

$mask(Dana!dana@staff.quakenet.org,1) 

Returns *!*dana@staff.quakenet.org.

$mask(Dana!dana@staff.quakenet.org,2)

Returns *!*@staff.quakenet.org.

See Also

$address searches the Internal Address List for the address associated with the specified nickname.