add missing Filter.pm mod

This commit is contained in:
Dirk Koopman 2020-04-06 21:17:25 +01:00
parent fc8ec20708
commit 0fba6dbd0d

View File

@ -373,6 +373,7 @@ sub parse
my $user;
# check the line for non legal characters
return ('ill', $dxchan->msg('e19')) if $dxchan->priv < 8 and $line =~ /{.*}/;
return ('ill', $dxchan->msg('e19')) if $line !~ /{.*}/ && $line =~ /[^\s\w,_\-\*\/\(\)!]/;
# add some spaces for ease of parsing