From e70e016112df7712022134accd637759efd99676 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 23 Mar 2018 13:34:28 -0700 Subject: [PATCH] Improve factoid variable expansion --- PBot/Factoids.pm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index e04e6a09..b596d890 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -413,9 +413,10 @@ sub expand_factoid_vars { my $matches = 0; $action =~ s/\$0/$root_keyword/g; my $const_action = $action; - while ($const_action =~ /(\ba\s*|\ban\s*)?(?