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