$dccignore » History » Version 4
Per Amundsen, 12/26/2018 08:20 AM
| 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 | N - If N = 0 returns number of items in the Dcc ignore/accept list, otherwise the Nth ignore/accept item. |
||
| 19 | filename - If specified returns [[$true]] if the filetype is ignored using the current settings, otherwise [[$false]]. |
||
| 20 | |||
| 21 | *Example* |
||
| 22 | |||
| 23 | <pre> |
||
| 24 | ; Print number of ignore/accept items. |
||
| 25 | //echo -ag Number of ignore/accept items is $dccignore(0) |
||
| 26 | |||
| 27 | ; Print the first ignore/accept item. |
||
| 28 | //echo -ag The first ignore/accept item is $dccignore(1) |
||
| 29 | |||
| 30 | ; Check if 'file.exe' is ignored or not. |
||
| 31 | //echo -ag file.exe $iif($dccignore(file.exe), is ignored, is not ignored) |
||
| 32 | </pre> |