X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fbadword.pl;h=d2b7fe3153720c9328d4ada1e9b271fcaa7c2571;hb=3cdd57e7baf63341fdcba6b764f304291ed0dbb2;hp=6a38d775c53fdd7a0446417ad0971d010d0fbba6;hpb=0560e85c7f60462fccb5b54d5ec2c0d88338001e;p=spider.git diff --git a/cmd/unset/badword.pl b/cmd/unset/badword.pl index 6a38d775..d2b7fe31 100644 --- a/cmd/unset/badword.pl +++ b/cmd/unset/badword.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 $BadWords::badword->unset(8, $self->msg('e6'), $self, $line);