$protect » History » Revision 2
Revision 1 (Per Amundsen, 02/04/2020 10:08 PM) → Revision 2/3 (Per Amundsen, 04/23/2020 07:00 PM)
_Added in 3.8_ *$protect* Returns [[$true]] if protect is enabled, otherwise [[$false]]. _see also [[/protect]]._ ----------------------------------------------------------------------------- *$protect(address|N)* Returns any matching address in the protect list, or the Nth address. *Parameters* address - Address to match. N - If N = 0, number of addresses, otherwise the Nth address. *Properties* .type - Returns the list of channels for this address. .network - Returns the network name for this address. *Example* <pre> ; Check if 'nick!ident@host' is in the protect list. //echo -g protect for nick!ident@host was $iif($protect(nick!ident@host), $iif($aop(nick!ident@host), found, not found) </pre>