mask
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | mask [2009/06/02 15:52] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: mask.txt,v 1.4 2009/05/27 18:36:41 zwhite Exp $ | ||
+ | ======Synopsis: | ||
+ | $__mask__(< | ||
+ | $__mask__(< | ||
+ | |||
+ | ======Technical: | ||
+ | In the second usage case, the < | ||
+ | which is different from most function arguments. | ||
+ | the < | ||
+ | |||
+ | This function returns < | ||
+ | specified by < | ||
+ | |||
+ | < | ||
+ | ------------------------------------------------------------------- | ||
+ | 0 *!u@h.d | ||
+ | 1 *!*u@h.d | ||
+ | 2 *!*@h.d | ||
+ | 3 *!*u@*.d | ||
+ | 4 *!*@*.d | ||
+ | 5 n!u@h.d | ||
+ | 6 n!*u@h.d | ||
+ | 7 n!*@h.d | ||
+ | 8 n!*u@*.d | ||
+ | 9 n!*@*.d | ||
+ | 10 | ||
+ | *11 *!*u@h.d | ||
+ | *12 n!*@h.d | ||
+ | *13 n!*u@h.d | ||
+ | |||
+ | where n=nick, u=user, h=host, and d=domain | ||
+ | |||
+ | With the following modifications: | ||
+ | the hostname, all sequence of numbers are substituted with a | ||
+ | single ' | ||
+ | with a single ' | ||
+ | |||
+ | NOTE: Types marked with an asterisk (*) are not currently | ||
+ | (as of epic5 1.0) implemented and will always return an empty | ||
+ | string. They are expected to be implemented in a future release | ||
+ | of epic5. | ||
+ | |||
+ | ======Returns: | ||
+ | < | ||
+ | |||
+ | ======Examples: | ||
+ | < | ||
+ | $mask(3 foo!bar@long.host.blah.com) | ||
+ | $mask(10 nick!user@ppp-147-0-52-129.frobitz.com) returns: *!*@ppp-*-*-*-*.frobitz.com | ||
+ | </ | ||
+ | |||
+ | ======Other Notes: | ||
+ | This function strips all tildes (' | ||
+ | script writers, this means that in mask types 0 and 5, the function is | ||
+ | *NOT* guaranteed to produce a mask matching the given address. If a script | ||
+ | is to use these types, they should expect tildes to be stripped and be able | ||
+ | to act accordingly. | ||
+ | |||
mask.txt · Last modified: 2009/06/02 15:52 by 127.0.0.1