X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FFilter.pm;fp=perl%2FFilter.pm;h=5e89b08f68fe530ff08b1fd733863a7016a7aa05;hb=6dd42fb1eab723e1ac158d9cbebc682eb4c0c8fd;hp=2c32bf025981465e9ae9b8f374fddeb2fa53527c;hpb=7877a8e9b8bc269b0611a0e716ecd66c5ade02b5;p=spider.git diff --git a/perl/Filter.pm b/perl/Filter.pm index 2c32bf02..5e89b08f 100644 --- a/perl/Filter.pm +++ b/perl/Filter.pm @@ -368,7 +368,7 @@ sub parse 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; @@ -444,12 +444,16 @@ sub parse if ($s) { $s .= $conj ; - $s .= $not; $user .= $conj; - $user .= $not; $conj = ' && '; - $not = ""; } + + if ($not) { + $s .= $not; + $user .= $not; + $not = ''; + } + $user .= "$tok $val"; my $fref;