mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 04:22:35 +01:00
Factoids: add flag to prevent --keyword-override parsing
This commit is contained in:
parent
e0a6d9bcb6
commit
e9fc0e5474
@ -1012,8 +1012,10 @@ sub handle_action {
|
||||
$stuff->{arguments} = '';
|
||||
}
|
||||
|
||||
if ($command =~ s/\s*--keyword-override=([^ ]+)\s*//) {
|
||||
$stuff->{keyword_override} = $1;
|
||||
unless ($self->{factoids}->hash->{$channel}->{$keyword}->{'no_keyword_override'}) {
|
||||
if ($command =~ s/\s*--keyword-override=([^ ]+)\s*//) {
|
||||
$stuff->{keyword_override} = $1;
|
||||
}
|
||||
}
|
||||
|
||||
$stuff->{command} = $command;
|
||||
|
Loading…
Reference in New Issue
Block a user