From 0d0c12e79820d189f27e20f77b68189467c134d1 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 4 Dec 2017 20:12:27 -0800 Subject: [PATCH] Unescape escaped command substitutions --- PBot/Interpreter.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index a82265c9..49120acc 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -264,6 +264,8 @@ sub interpret { return $result; } + # unescape any escaped substituted commands + $arguments =~ s/\\&\{/&{/g if defined $arguments; # parse out a pipe unless escaped if (defined $arguments && $arguments =~ m/(?