Project

General

Profile

$trust » History » Version 5

Per Amundsen, 02/23/2023 07:51 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$trust(N)*
4
5 4 Per Amundsen
Returns the Nth item in the DCC trust list set in [[Options_Dialog|Options]] -> [[DCC Options|DCC]] -> [[DCC_Options#Auto-accept-transfers|Auto accept transfers]].
6 1 Per Amundsen
7
*Parameters*
8
9 5 Per Amundsen
table(ktable).
10
|*Parameter*|*Description*|
11
| N | If N = 0, the number of items in the trust list, otherwise the Nth item. |
12 1 Per Amundsen
13
*Example*
14
15
<pre>
16
; Print the number of items in the DCC trust list.
17
//echo -ag $trust(0)
18
19
; Print the first item in the DCC trust list.
20
//echo -ag $trust(1)
21
</pre>