$banlist » History » Version 2
Per Amundsen, 02/16/2023 09:08 PM
1 | 1 | Per Amundsen | _Added in 1.9.6_ |
---|---|---|---|
2 | |||
3 | *$banlist(#channel,N)* |
||
4 | |||
5 | Returns Nth item in the internal ban list. |
||
6 | |||
7 | _Same as [[$ibl]]._ |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | 2 | Per Amundsen | table(ktable). |
12 | |*Parameter*|*Description*| |
||
13 | | #channel | The channel to retrieve ban list from. | |
||
14 | | N | If N = 0, total number of bans, otherwise the Nth ban. | |
||
15 | 1 | Per Amundsen | |
16 | *Properties* |
||
17 | |||
18 | 2 | Per Amundsen | table(ktable). |
19 | |*Property*|*Description*| |
||
20 | | .by | The nick who set the ban. | |
||
21 | | .ctime | The time the ban was set in unix timestamp format. | |
||
22 | | .date | THe time the ban was set in mmm oo HH:mmtt format. | |
||
23 | | .secs | Number of seconds until ban expire (if set to expire). | |
||
24 | 1 | Per Amundsen | |
25 | *Example* |
||
26 | |||
27 | <pre> |
||
28 | ; Get number of bans. |
||
29 | //echo -ag $banlist(#channel, 0) |
||
30 | |||
31 | |||
32 | ; Get information about the first ban. |
||
33 | //echo -ag $banlist(#channel, 1) set by $banlist(#channel, 1).by set at $banlist(#channel, 1).date |
||
34 | </pre> |