3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +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,9 +1012,11 @@ sub handle_action {
$stuff->{arguments} = '';
}
unless ($self->{factoids}->hash->{$channel}->{$keyword}->{'no_keyword_override'}) {
if ($command =~ s/\s*--keyword-override=([^ ]+)\s*//) {
$stuff->{keyword_override} = $1;
}
}
$stuff->{command} = $command;
$stuff->{aliased} = 1;