X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fbadnode.pl;h=6ac5b3981916e0714f15c136e2daa410c4351d37;hb=f63d598af3f797b56b8d5e23ec4ff5254192eee9;hp=8af48111dbb8e4fb374bf52f6a79595aef826a7b;hpb=2bd682330ce9b04c95ddf05715cfb643da2df0ea;p=spider.git diff --git a/cmd/set/badnode.pl b/cmd/set/badnode.pl index 8af48111..6ac5b398 100644 --- a/cmd/set/badnode.pl +++ b/cmd/set/badnode.pl @@ -1,18 +1,14 @@ # -# set list of bad nodes +# set list of bad dx nodes # # Copyright (c) 1998 - Dirk Koopman G1TLH # -# $Id$ +# # my ($self, $line) = @_; +return (1, $self->msg('e5')) if $self->remotecmd; +# are we permitted? return (1, $self->msg('e5')) if $self->priv < 6; -my @f = split /\s+/, $line; -my @out; -for (@f) { - return (1, $self->msg('e19')) if /[^\s\w_\-\/]/; - my $call = uc $_; - push @DXProt::nodx_node, $call; - push @out, $self->msg('badnode1', $call); -} -return (1, @out); +#$line = join(' ', map {s|[/-]\d+$||; $_} split(/\s+/, $line)); +return $DXProt::badnode->set(8, $self->msg('e12'), $self, $line); +