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*)?(?