X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Funset%2Fbadword.pl;h=d2b7fe3153720c9328d4ada1e9b271fcaa7c2571;hb=abbcfa7500858a2eba4135b0af5db9f3fca8d68e;hp=76f0cf1013436fff3d12217326ae5fa059ba8c0f;hpb=17f0b57add792391822d38116e89b33c1df4e2dd;p=spider.git diff --git a/cmd/unset/badword.pl b/cmd/unset/badword.pl index 76f0cf10..d2b7fe31 100644 --- a/cmd/unset/badword.pl +++ b/cmd/unset/badword.pl @@ -3,8 +3,12 @@ # # Copyright (c) 1998 - Dirk Koopman G1TLH # -# $Id$ +# # my ($self, $line) = @_; -return $BadWord::badwords->unset(8, $self->msg('e6'), $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);