From b5f0abefb8a73cafa2bdd52a679d5c510e1f229b Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 19 Jul 2020 16:11:40 -0700 Subject: [PATCH] Factoids: fix a thing --- PBot/Factoids.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index a406b38c..9529ffed 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -822,7 +822,8 @@ sub expand_factoid_vars { goto ALIAS; } - my %settings = $self->parse_expansion_modifiers(\$rest); + my $copy = $rest; + my %settings = $self->parse_expansion_modifiers(\$copy); if ($self->{factoids}->get_data($var_chan, $var, 'type') eq 'text') { my $change = $self->{factoids}->get_data($var_chan, $var, 'action');