X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fbadnode.pl;fp=cmd%2Funset%2Fbadnode.pl;h=65d105274f6fabc51760c25734ba8ae532129c91;hb=0a92a4608d715cd9cd7eec3c120da651fbb4da5b;hp=4e42e28d530690e8f41c29c3e71cf2aa712521c3;hpb=e9c1322080e18fb8f6f3f0e54bfcbdf3f4da3909;p=spider.git diff --git a/cmd/unset/badnode.pl b/cmd/unset/badnode.pl index 4e42e28d..65d10527 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); +