From a3df01bae381cddb4a6dacdee57a4016438725ac Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 30 Sep 2015 09:50:37 -0700 Subject: [PATCH] Escape delim in `factchange` command to allow delimiters such as the pipe character --- PBot/FactoidCommands.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PBot/FactoidCommands.pm b/PBot/FactoidCommands.pm index 1f11feca..fa50ef35 100644 --- a/PBot/FactoidCommands.pm +++ b/PBot/FactoidCommands.pm @@ -943,6 +943,8 @@ sub factchange { $keyword = $2; $delim = $3; } + + $delim = quotemeta $delim; if($arguments =~ /$delim(.*?)$delim(.*)$delim(.*)?$/) { $tochange = $1;