From WikiChip
Difference between revisions of "mirc/identifiers/$mask"
< mirc‎ | identifiers

(Parameters)
 
Line 8: Line 8:
 
* '''type''' - The type of address, a positive integer between 1-19:
 
* '''type''' - The type of address, a positive integer between 1-19:
 
** 0: *!user@host
 
** 0: *!user@host
** 1: *!*user@host
+
** 1: *!*user@host
** 2: *!*@host
+
** 2: *!*@host
** 3: *!*user@*.host
+
** 3: *!*user@*.host
** 4: *!*@*.host
+
** 4: *!*@*.host
** 5: nick!user@host
+
** 5: nick!user@host
** 6: nick!*user@host
+
** 6: nick!*user@host
** 7: nick!*@host
+
** 7: nick!*@host
** 8: nick!*user@*.host
+
** 8: nick!*user@*.host
** 9: nick!*@*.host
+
** 9: nick!*@*.host
  
 
Type 10-19 are same as types 0-9 except asterisks in host are expanded to the text they replaced, then all numbers are replaced by question marks.<br />
 
Type 10-19 are same as types 0-9 except asterisks in host are expanded to the text they replaced, then all numbers are replaced by question marks.<br />

Latest revision as of 18:36, 3 May 2025

$mask returns the address with a mask of the specified type.

Synopsis[edit]

$mask(address,type)

Parameters[edit]

  • address - The address you want the mask of.
  • type - The type of address, a positive integer between 1-19:
    • 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

Type 10-19 are same as types 0-9 except asterisks in host are expanded to the text they replaced, then all numbers are replaced by question marks.

Masks are case-insensitive and assigned by the internet provider, but IRC servers often provide user mode +x to help disguise them.

Properties[edit]

None

Example[edit]

//echo -a $mask(nick!user@host,7)

Compatibility[edit]

Added: mIRC v4.52
Added on: 06 Jul 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]