cd44a0aaa1ce04f8dfc3fc9593f43f8ba855afab
[spider.git] / cmd / unset / badnode.pl
1 #
2 # set list of bad dx nodes
3 #
4 # Copyright (c) 1998 - Dirk Koopman G1TLH
5 #
6 #
7 #
8 my ($self, $line) = @_;
9 return (1, $self->msg('e5')) if $self->remotecmd;
10 # are we permitted?
11 return (1, $self->msg('e5')) if $self->priv < 6;
12 $line = join(' ', map {s|[/-]\d+$||; $_} split(/\s+/, $line));
13 return $DXProt::badnode->unset(8, $self->msg('e12'), $self, $line);
14