Difference between revisions of "$mask"
From Scriptwiki
(added wildcard link.) |
(added link to category:IAL) |
||
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]] |
Revision as of 20:28, 21 November 2005
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.