X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fbadspotter.pl;h=20c5569f0c3d680c2d87e5d46b9b34a34a82e6d1;hb=3cdd57e7baf63341fdcba6b764f304291ed0dbb2;hp=8259133bb048534f6f8297e1671f0a1be4d312aa;hpb=0560e85c7f60462fccb5b54d5ec2c0d88338001e;p=spider.git diff --git a/cmd/unset/badspotter.pl b/cmd/unset/badspotter.pl index 8259133b..20c5569f 100644 --- a/cmd/unset/badspotter.pl +++ b/cmd/unset/badspotter.pl @@ -6,6 +6,10 @@ # # 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)); $line = join(' ', map {s|[/-]\d+$||; $_} split(/\s+/, $line)); return $DXProt::badspotter->unset(8, $self->msg('e6'), $self, $line);