From 7db2dd17bc20f166607b5e5424dc19e32c2c903e Mon Sep 17 00:00:00 2001 From: minima Date: Sat, 8 Dec 2001 13:26:09 +0000 Subject: [PATCH] allow 0 for the number of hops (which deletes the hops) --- cmd/set/hops.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/set/hops.pl b/cmd/set/hops.pl index 43b4594c..c458b578 100644 --- a/cmd/set/hops.pl +++ b/cmd/set/hops.pl @@ -21,7 +21,7 @@ if (is_callsign(uc $f[0])) { my $sort = lc shift @f if $f[0] =~ /^ann|spots|wwv|wcy|route$/i; my $hops = shift @f if $f[0] =~ /^\d+$/; -return (0, $self->msg('sethop1')) unless $call && $sort && $hops; +return (0, $self->msg('sethop1')) unless $call && $sort && defined $hops; my $ref = Filter::read_in($sort, $call, 0); $ref = Filter->new($sort, $call, 0) if !$ref || $ref->isa('Filter::Old'); -- 2.34.1