X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fbadnode.pl;h=12f143abceda212bc42606560d0da646dcd2f531;hb=db1ab4fb2566360a224aa47e8b487150823c10a0;hp=4e42e28d530690e8f41c29c3e71cf2aa712521c3;hpb=2bd682330ce9b04c95ddf05715cfb643da2df0ea;p=spider.git diff --git a/cmd/unset/badnode.pl b/cmd/unset/badnode.pl index 4e42e28d..12f143ab 100644 --- a/cmd/unset/badnode.pl +++ b/cmd/unset/badnode.pl @@ -1,18 +1,10 @@ # -# unset 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->priv < 6; -my @f = split /\s+/, $line; -my @out; -for (@f) { - return (1, $self->msg('e19')) if /[^\s\w_\-\/]/; - my $call = uc $_; - @DXProt::nodx_node = grep { !$call =~ /^$_/ } @DXProt::nodx_node; - push @out, $self->msg('badnode2', $call); -} -return (1, @out); +return $DXProt::badnode->unset(8, $self->msg('e12'), $self, $line); +