$protect » History » Version 3
Per Amundsen, 02/23/2023 07:17 PM
| 1 | 1 | Per Amundsen | _Added in 3.8_ |
|---|---|---|---|
| 2 | |||
| 3 | *$protect* |
||
| 4 | |||
| 5 | Returns [[$true]] if protect is enabled, otherwise [[$false]]. |
||
| 6 | |||
| 7 | _see also [[/protect]]._ |
||
| 8 | |||
| 9 | ----------------------------------------------------------------------------- |
||
| 10 | |||
| 11 | *$protect(address|N)* |
||
| 12 | |||
| 13 | Returns any matching address in the protect list, or the Nth address. |
||
| 14 | |||
| 15 | *Parameters* |
||
| 16 | |||
| 17 | 3 | Per Amundsen | table(ktable). |
| 18 | |*Parameter*|*Description*| |
||
| 19 | | address | Address to match. | |
||
| 20 | | N | If N = 0, number of addresses, otherwise the Nth address. | |
||
| 21 | 1 | Per Amundsen | |
| 22 | *Properties* |
||
| 23 | |||
| 24 | 3 | Per Amundsen | table(ktable). |
| 25 | |*Property*|*Description*| |
||
| 26 | | .type | Returns the list of channels for this address. | |
||
| 27 | | .network | Returns the network name for this address. | |
||
| 28 | 1 | Per Amundsen | |
| 29 | *Example* |
||
| 30 | |||
| 31 | <pre> |
||
| 32 | ; Check if 'nick!ident@host' is in the protect list. |
||
| 33 | 2 | Per Amundsen | //echo -g protect for nick!ident@host was $iif($protect(nick!ident@host), found, not found) |
| 34 | 1 | Per Amundsen | </pre> |