mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
Factoids: strip quotes from pick() $var modifier
This commit is contained in:
parent
6a94dc6651
commit
76863dea5c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user