X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fbadnode.pl;h=cd44a0aaa1ce04f8dfc3fc9593f43f8ba855afab;hb=3cdd57e7baf63341fdcba6b764f304291ed0dbb2;hp=65d105274f6fabc51760c25734ba8ae532129c91;hpb=0a92a4608d715cd9cd7eec3c120da651fbb4da5b;p=spider.git diff --git a/cmd/unset/badnode.pl b/cmd/unset/badnode.pl index 65d10527..cd44a0aa 100644 --- a/cmd/unset/badnode.pl +++ b/cmd/unset/badnode.pl @@ -3,8 +3,12 @@ # # Copyright (c) 1998 - Dirk Koopman G1TLH # -# $Id$ +# # my ($self, $line) = @_; +return (1, $self->msg('e5')) if $self->remotecmd; +# are we permitted? +return (1, $self->msg('e5')) if $self->priv < 6; +$line = join(' ', map {s|[/-]\d+$||; $_} split(/\s+/, $line)); return $DXProt::badnode->unset(8, $self->msg('e12'), $self, $line);