3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

Escape delim in factchange command to allow delimiters such as the pipe character

This commit is contained in:
Pragmatic Software 2015-09-30 09:50:37 -07:00
parent a562f79956
commit a3df01bae3

View File

@ -943,6 +943,8 @@ sub factchange {
$keyword = $2; $keyword = $2;
$delim = $3; $delim = $3;
} }
$delim = quotemeta $delim;
if($arguments =~ /$delim(.*?)$delim(.*)$delim(.*)?$/) { if($arguments =~ /$delim(.*?)$delim(.*)$delim(.*)?$/) {
$tochange = $1; $tochange = $1;