From a6e495352f5745633b4c09a02621ceb2b86bc0d1 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 27 Aug 2017 19:54:46 -0700 Subject: [PATCH] Remove extraneous $1 --- PBot/Factoids.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index 56f7b92e..c635a017 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -379,7 +379,7 @@ sub expand_factoid_vars { while (1) { last if ++$depth >= 10; my $matches = 0; - $action =~ s/\$0/\$$root_keyword$1/g; + $action =~ s/\$0/\$$root_keyword/g; my $const_action = $action; while ($const_action =~ /(\ba\s*|\ban\s*)?(?