Project

General

Profile

$ibl » History » Version 4

Per Amundsen, 02/23/2023 01:43 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$ibl(#channel,N)*
4
5
Returns Nth item in the internal ban list.
6
7 3 Per Amundsen
_Same as [[$banlist]]._
8
9 1 Per Amundsen
*Parameters*
10
11 4 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 4 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 $ibl(#channel, 0)
30
31
32
; Get information about the first ban.
33
//echo -ag $ibl(#channel, 1) set by $ibl(#channel, 1).by set at $ibl(#channel, 1).date
34
</pre>