projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add skeletons for new commands Rt, Ping and T.
[spider.git]
/
cmd
/
clear
/
spots.pl
diff --git
a/cmd/clear/spots.pl
b/cmd/clear/spots.pl
index d2a59bc07131195176775adb74fe693d045efe98..e2c8a76191e10cb7dbd43d952da546134ea1b5f8 100644
(file)
--- a/
cmd/clear/spots.pl
+++ b/
cmd/clear/spots.pl
@@
-6,7
+6,7
@@
# $Id$
#
my ($self, $line) = @_;
# $Id$
#
my ($self, $line) = @_;
-my @f = split
(/\s+/, $line)
;
+my @f = split
/\s+/, $line
;
my @out;
my $dxchan = $self;
my $sort = 'spots';
my @out;
my $dxchan = $self;
my $sort = 'spots';
@@
-16,18
+16,20
@@
my $call = $dxchan->call;
my $f;
if ($self->priv >= 8) {
my $f;
if ($self->priv >= 8) {
- if (is_callsign(uc $f[0])) {
+ if (
@f &&
is_callsign(uc $f[0])) {
$f = uc shift @f;
my $uref = DXUser->get($f);
$call = $uref->call if $uref;
$f = uc shift @f;
my $uref = DXUser->get($f);
$call = $uref->call if $uref;
+ } elsif (@f && lc $f[0] eq 'node_default' || lc $f[0] eq 'user_default') {
+ $call = lc shift @f;
}
}
- if ($f[0] eq 'input') {
+ if (
@f &&
$f[0] eq 'input') {
shift @f;
$flag = 'in';
}
}
shift @f;
$flag = 'in';
}
}
-$fno = shift @f if @f && $f[0] =~ /^\d$/;
+$fno = shift @f if @f && $f[0] =~ /^\d
|all
$/;
my $filter = Filter::read_in($sort, $call, $flag);
Filter::delete($sort, $call, $flag, $fno);
my $filter = Filter::read_in($sort, $call, $flag);
Filter::delete($sort, $call, $flag, $fno);