projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now add files that the previous commit refered to
[spider.git]
/
cmd
/
set
/
badword.pl
diff --git
a/cmd/set/badword.pl
b/cmd/set/badword.pl
index 7df13cff6a0b61cf89de642e8f5a60d95d5c547e..2879388f4f921aa1574d78ae88545ef1b37b4282 100644
(file)
--- a/
cmd/set/badword.pl
+++ b/
cmd/set/badword.pl
@@
-6,5
+6,9
@@
#
#
my ($self, $line) = @_;
#
#
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->set(8, $self->msg('e6'), $self, $line);
return $BadWords::badword->set(8, $self->msg('e6'), $self, $line);