3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-05-03 13:17:33 +02:00

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

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;