X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fbadnode.pl;h=e569365175bc16222f3f875c514a9078b11afb8d;hb=3cdd57e7baf63341fdcba6b764f304291ed0dbb2;hp=f8aa263c2f53ac98b6bf493a44ee552613ed4151;hpb=0560e85c7f60462fccb5b54d5ec2c0d88338001e;p=spider.git diff --git a/cmd/show/badnode.pl b/cmd/show/badnode.pl index f8aa263c..e5693651 100644 --- a/cmd/show/badnode.pl +++ b/cmd/show/badnode.pl @@ -6,5 +6,9 @@ # # 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->show(1, $self);