X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fclear%2Fspots.pl;h=f630eb54c914718a2504b99d7c9eefbd00600734;hb=6a17c3a3e2f7a72c0d13a93c90a010b753319def;hp=a7aa20af36bacfe054b3b66a17dfd7c66e8b637c;hpb=f43ac25669a7b9368d9537eed2043a864a906303;p=spider.git diff --git a/cmd/clear/spots.pl b/cmd/clear/spots.pl index a7aa20af..f630eb54 100644 --- a/cmd/clear/spots.pl +++ b/cmd/clear/spots.pl @@ -8,17 +8,16 @@ my ($self, $line) = @_; my @f = split /\s+/, $line; my @out; -my $dxchan = $self; my $sort = 'spots'; my $flag; my $fno = 1; -my $call = $dxchan->call; +my $call = $self->call; my $f; if ($self->priv >= 8) { if (@f && is_callsign(uc $f[0])) { $f = uc shift @f; - my $uref = DXUser::get($f); + my $uref = DXUser::get_current($f); $call = $uref->call if $uref; } elsif (@f && lc $f[0] eq 'node_default' || lc $f[0] eq 'user_default') { $call = lc shift @f; @@ -32,7 +31,7 @@ if ($self->priv >= 8) { $fno = shift @f if @f && $f[0] =~ /^\d|all$/; my $filter = Filter::read_in($sort, $call, $flag); -Filter::delete($sort, $call, $flag, $fno); +Filter::delete($sort, $call, $flag, $fno, $self); $flag = $flag ? "input " : ""; push @out, $self->msg('filter4', $flag, $sort, $fno, $call); return (1, @out);