Project

General

Profile

Actions

$dccignore » History » Revision 4

« Previous | Revision 4/5 (diff) | Next »
Per Amundsen, 12/26/2018 08:20 AM


Added in 2.7

$dccignore

Returns $true if Options -> Dcc -> Dcc Ignore Method is set to accept only/ignore only, otherwise $false.

See also /dcc.


$dccignore(N/filename)

Returns the Nth item in the Dcc ignore or accept list in Options -> Dcc -> Dcc Ignore.

Parameters

N - If N = 0 returns number of items in the Dcc ignore/accept list, otherwise the Nth ignore/accept item.
filename - If specified returns $true if the filetype is ignored using the current settings, otherwise $false.

Example

; Print number of ignore/accept items.
//echo -ag Number of ignore/accept items is $dccignore(0)

; Print the first ignore/accept item.
//echo -ag The first ignore/accept item is $dccignore(1)

; Check if 'file.exe' is ignored or not.
//echo -ag file.exe $iif($dccignore(file.exe), is ignored, is not ignored)

Updated by Per Amundsen over 5 years ago · 4 revisions

Also available in: PDF HTML TXT