From 43418c1bc63647a1c09fccd25212cc2f6f709c6d Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 10 Oct 2015 06:07:24 -0700 Subject: [PATCH] Require curly braces or backticks around embedded commands --- PBot/Interpreter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index 0c5a902b..064fa4a4 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -112,7 +112,7 @@ sub process_line { } elsif($cmd_text =~ s/^(.*?),?\s*$botnick[?!.]*$//i) { $command = $1; $processed += 100; - } elsif ($cmd_text =~ s/\B$bot_trigger([^ ]+)//) { + } elsif ($cmd_text =~ s/\B$bot_trigger`([^`]+)// || $cmd_text =~ s/\B$bot_trigger\{([^}]+)//) { my $cmd = $1; $cmd =~ s/(.)[.!?;,)]$/$1/; my ($nick) = $cmd_text =~ m/^([^ ,:;]+)/;