#
# clear filters commands
#
# Copyright (c) 2000 Dirk Koopman G1TLH
#
# $Id$
#
my ($self, $line) = @_;
my @f = split /\s+/, $line;
my @out;
my $dxchan = $self;
my $sort = 'wwv';
my $flag;
my $fno = 1;
my $call = $dxchan->call;

my $f = lc shift @f if @f;
if ($self->priv >= 8) {
	if (is_callsign(uc $f)) {
		my $uref = DXUser->get(uc $f);
		$call = $uref->call if $uref;
	}
	if (@f) {
		$f = lc shift @f;
		if ($f eq 'input') {
			$flag = 'in';
			$f = shift @f if @f;
		}
	}
}

$fno = $f if $f;
my $filter = Filter::read_in($sort, $call, $flag);
Filter::delete($sort, $call, $flag, $fno);
$flag = $flag ? "input " : "";
push @out, $self->msg('filter4', $flag, $sort, $fno, $call);
return (1, @out);
