projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start work on NP stuff seriously
[spider.git]
/
perl
/
Filter.pm
diff --git
a/perl/Filter.pm
b/perl/Filter.pm
index 2c32bf025981465e9ae9b8f374fddeb2fa53527c..5e89b08f68fe530ff08b1fd733863a7016a7aa05 100644
(file)
--- a/
perl/Filter.pm
+++ b/
perl/Filter.pm
@@
-368,7
+368,7
@@
sub parse
my $user;
# check the line for non legal characters
my $user;
# check the line for non legal characters
- return ('ill', $dxchan->msg('e19')) if $line =~ /[^\s\w,_\-\*\/\(\)]/;
+ return ('ill', $dxchan->msg('e19')) if $line =~ /[^\s\w,_\-\*\/\(\)
!
]/;
# add some spaces for ease of parsing
$line =~ s/([\(\)])/ $1 /g;
# add some spaces for ease of parsing
$line =~ s/([\(\)])/ $1 /g;
@@
-444,12
+444,16
@@
sub parse
if ($s) {
$s .= $conj ;
if ($s) {
$s .= $conj ;
- $s .= $not;
$user .= $conj;
$user .= $conj;
- $user .= $not;
$conj = ' && ';
$conj = ' && ';
- $not = "";
}
}
+
+ if ($not) {
+ $s .= $not;
+ $user .= $not;
+ $not = '';
+ }
+
$user .= "$tok $val";
my $fref;
$user .= "$tok $val";
my $fref;