3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-01-11 20:42:38 +01:00

Factoids: strip quotes from pick() $var modifier

This commit is contained in:
Pragmatic Software 2020-05-29 22:34:29 -07:00
parent 6a94dc6651
commit 76863dea5c

View File

@ -615,6 +615,8 @@ sub expand_factoid_vars {
splice @mylist, $index, 1;
}
# strip outer quotes
if (not $choice =~ s/^"(.*)"$/$1/) { $choice =~ s/^'(.*)'$/$1/; }
push @list, $choice;
}