2 # clear filters commands
4 # Copyright (c) 2000 Dirk Koopman G1TLH
8 my ($self, $line) = @_;
9 my @f = split /\s+/, $line;
15 my $call = $dxchan->call;
18 if ($self->priv >= 8) {
19 if (@f && is_callsign(uc $f[0])) {
21 my $uref = DXUser->get($f);
22 $call = $uref->call if $uref;
23 } elsif (@f && lc $f[0] eq 'node_default' || lc $f[0] eq 'user_default') {
26 if (@f && $f[0] eq 'input') {
32 $fno = shift @f if @f && $f[0] =~ /^\d|all$/;
34 my $filter = Filter::read_in($sort, $call, $flag);
35 Filter::delete($sort, $call, $flag, $fno);
36 $flag = $flag ? "input " : "";
37 push @out, $self->msg('filter4', $flag, $sort, $fno, $call);