From 133f4fa4ab8d5a49653d1d71581087a7cc0ba4dd Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 26 May 2021 23:59:19 -0700 Subject: [PATCH] Factoids: fix previous commit --- PBot/Factoids.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index 78f5542d..ea937d44 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -745,7 +745,8 @@ sub expand_factoid_vars { $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);