Project

General

Profile

$dccignore » History » Version 5

Per Amundsen, 02/16/2023 09:27 PM

1 1 Per Amundsen
_Added in 2.7_
2
3
*$dccignore*
4
5 2 Per Amundsen
Returns [[$true]] if [[Options DIalog|Options]] -> [[Dcc Options|Dcc]] -> [[Dcc_Options#Dcc-Ignore-Method|Dcc Ignore Method]] is set to accept only/ignore only, otherwise [[$false]].
6 1 Per Amundsen
7
_See also [[/dcc]]._
8 3 Per Amundsen
9
-----------------------------------------------------------------------------
10
11
*$dccignore(N/filename)*
12
13 4 Per Amundsen
Returns the Nth item in the Dcc ignore or accept list in [[Options Dialog|Options]] -> [[Dcc_Options|Dcc]] -> Dcc Ignore.
14
15
16
*Parameters*
17
18 5 Per Amundsen
table(ktable).
19
|*Parameter*|*Description*|
20
| N | If N = 0 returns number of items in the Dcc ignore/accept list, otherwise the Nth ignore/accept item. |
21
| filename | If specified returns [[$true]] if the filetype is ignored using the current settings, otherwise [[$false]]. |
22 4 Per Amundsen
23
*Example*
24
25
<pre>
26
; Print number of ignore/accept items.
27
//echo -ag Number of ignore/accept items is $dccignore(0)
28
29
; Print the first ignore/accept item.
30
//echo -ag The first ignore/accept item is $dccignore(1)
31
32
; Check if 'file.exe' is ignored or not.
33
//echo -ag file.exe $iif($dccignore(file.exe), is ignored, is not ignored)
34
</pre>