X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fbadnode.pl;h=c104be27fc52597a64dd5a8762da9451c9233551;hb=6b904a6db275029dd6d7a5cf0a48c1f0770ea8c2;hp=12f143abceda212bc42606560d0da646dcd2f531;hpb=c3505bcfc922cd712bad2c20b3479cf8d1dc54fe;p=spider.git diff --git a/cmd/unset/badnode.pl b/cmd/unset/badnode.pl index 12f143ab..c104be27 100644 --- a/cmd/unset/badnode.pl +++ b/cmd/unset/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->unset(8, $self->msg('e12'), $self, $line);