X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fbadnode.pl;fp=cmd%2Funset%2Fbadnode.pl;h=4e42e28d530690e8f41c29c3e71cf2aa712521c3;hb=2bd682330ce9b04c95ddf05715cfb643da2df0ea;hp=0000000000000000000000000000000000000000;hpb=b983b31f7993e00b2b7d051fad5b7cb67427427a;p=spider.git diff --git a/cmd/unset/badnode.pl b/cmd/unset/badnode.pl new file mode 100644 index 00000000..4e42e28d --- /dev/null +++ b/cmd/unset/badnode.pl @@ -0,0 +1,18 @@ +# +# unset list of bad 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);