From 520cce7ea82204cd4aba0491d4f0a9933d180720 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 25 May 2021 13:28:08 -0700 Subject: [PATCH] Factoids: expand_factoid_vars() now respects factoid `interpolate` metadata --- PBot/Factoids.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index 1e1f9a1c..e52f31e2 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -745,6 +745,8 @@ sub expand_factoid_vars { $action = defined $action ? $action : $context->{action}; + return $action if $self->{factoids}->get_data($context->{channel}, $context->{keyword}, 'interpolate') eq '0'; + $action = $self->expand_factoid_selectors($context, $action, %opts); my $depth = 0;