X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fset%2Fbadnode.pl;h=6ac5b3981916e0714f15c136e2daa410c4351d37;hb=6ba06f6627a07863cac75ecd7a43e72d91402f1f;hp=13d91e77a155e097a26178f8c59ab77e36c0bb0f;hpb=8df1aee164a383a9093706023a1187caff925cc7;p=spider.git diff --git a/cmd/set/badnode.pl b/cmd/set/badnode.pl index 13d91e77..6ac5b398 100644 --- a/cmd/set/badnode.pl +++ b/cmd/set/badnode.pl @@ -1,17 +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) { - my $call = uc $_; - push @DXProt::nodx_node, $call; - push @out, "$call is now a badnode"; -} -return (1, @out); +#$line = join(' ', map {s|[/-]\d+$||; $_} split(/\s+/, $line)); +return $DXProt::badnode->set(8, $self->msg('e12'), $self, $line); +