$ignore » History » Version 6
Per Amundsen, 02/23/2023 01:52 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$ignore* |
||
4 | |||
5 | Returns [[$true]] if [[/ignore]] is enabled, otherwise [[$false]]. |
||
6 | |||
7 | *$ignore(N|address)* |
||
8 | |||
9 | 4 | Per Amundsen | Returns the Nth address in the ignore list set in [[Options_Dialog|Options]] -> [[Ignore Options|Ignore]] or using [[/ignore]]. |
10 | 1 | Per Amundsen | |
11 | *Parameters* |
||
12 | |||
13 | 6 | Per Amundsen | table(ktable). |
14 | |*Parameter*|*Description*| |
||
15 | | N<notextile>|</notextile>address | An address or if N = 0, number of addresses, otherwise the Nth address. | |
||
16 | 1 | Per Amundsen | |
17 | *Properties* |
||
18 | |||
19 | 6 | Per Amundsen | table(ktable). |
20 | |*Property*|*Description*| |
||
21 | | .network | The network associated with the ignore. (if any) | |
||
22 | | .type | Ignore flags. | |
||
23 | | .secs | Number of seconds until the ignore expire. (if set to expire) | |
||
24 | | .note | Returns the note. *(AdiIRC only)* | |
||
25 | | .channel | Returns channel(s). *(AdiIRC only)* | |
||
26 | | .text | Returns match text. *(AdiIRC only)* | |
||
27 | | .cs | Returns [[$true]] if case sensetive otherwise [[$false]]. *(AdiIRC only)* | |
||
28 | | .regex | Returns [[$true]] if regex otherwise [[$false]]. *(AdiIRC only)* | |
||
29 | 1 | Per Amundsen | |
30 | *Examples* |
||
31 | |||
32 | <pre> |
||
33 | ; Add a ignore for the nick 'Example' |
||
34 | /ignore -u1000 Example |
||
35 | |||
36 | ; Print number of addresses in the ignore list. |
||
37 | //echo -ag $ignore(0) |
||
38 | |||
39 | ; Print information about the 'Example' ignore. |
||
40 | //echo -ag $ignore(Example) type is $ignore(Example).type secs is $ignore(Example).secs |
||
41 | </pre> |