added DXHash.pm
[spider.git] / cmd / unset / badnode.pl
index 4e42e28d530690e8f41c29c3e71cf2aa712521c3..65d105274f6fabc51760c25734ba8ae532129c91 100644 (file)
@@ -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);
+