From 31e38bf2fe099328431ea665b41a2fe3744ca928 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 24 Mar 2018 17:37:47 -0700 Subject: [PATCH] Whoops, forgot a/an in Factoid expansion replacement --- PBot/Factoids.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index b596d890..141937bb 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -485,9 +485,9 @@ sub expand_factoid_vars { } if (not length $mylist[$line]) { - substr($action, $offset) =~ s/\s+\$$v$modifier//; + substr($action, $offset) =~ s/\s*$a\$$v$modifier//; } else { - substr($action, $offset) =~ s/\$$v$modifier/$mylist[$line]/; + substr($action, $offset) =~ s/$a\$$v$modifier/$mylist[$line]/; } $offset = $+[0]; }