3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 09:58:42 +02:00

Factoids: fix previous commit

This commit is contained in:
Pragmatic Software 2021-05-26 23:59:19 -07:00
parent 1c52041be2
commit 133f4fa4ab

View File

@ -745,7 +745,8 @@ sub expand_factoid_vars {
$action = defined $action ? $action : $context->{action}; $action = defined $action ? $action : $context->{action};
return $action if not $self->{factoids}->get_data($context->{channel}, $context->{keyword}, 'interpolate'); my $interpolate = $self->{factoids}->get_data($context->{channel}, $context->{keyword}, 'interpolate');
return $action if defined $interpolate and $interpolate == 0;
$action = $self->expand_factoid_selectors($context, $action, %opts); $action = $self->expand_factoid_selectors($context, $action, %opts);