mirror of https://github.com/pragma-/pbot.git
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} = '';
|
$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;
|
||||||
|
|
Loading…
Reference in New Issue