Difference between revisions of "$mask"

From Scriptwiki
Jump to: navigation, search
(added wildcard link.)
m
 
(One intermediate revision by one other user not shown)
Line 24: Line 24:
  
 
== See Also ==
 
== See Also ==
[[$address]] searches the [[IAL|Internal Address List]] for the address associated with the specified nickname.
+
* [[$address]] searches the [[:Category:IAL|Internal Address List]] for the address associated with the specified nickname.
  
 
[[Category:Nick and Address Identifiers]]
 
[[Category:Nick and Address Identifiers]]

Latest revision as of 10:09, 2 July 2007

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