Factoids: add flag to prevent --keyword-override parsing

This commit is contained in:
Pragmatic Software 2019-05-31 08:21:27 -07:00
parent e0a6d9bcb6
commit e9fc0e5474
1 changed files with 4 additions and 2 deletions

View File

@ -1012,8 +1012,10 @@ sub handle_action {
$stuff->{arguments} = ''; $stuff->{arguments} = '';
} }
if ($command =~ s/\s*--keyword-override=([^ ]+)\s*//) { unless ($self->{factoids}->hash->{$channel}->{$keyword}->{'no_keyword_override'}) {
$stuff->{keyword_override} = $1; if ($command =~ s/\s*--keyword-override=([^ ]+)\s*//) {
$stuff->{keyword_override} = $1;
}
} }
$stuff->{command} = $command; $stuff->{command} = $command;