From b114d14fb1b8ed3bc113ca953e6c6268f0ebfd71 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 20 Aug 2020 20:14:28 -0700 Subject: [PATCH] Interpreter: fix potential misparse of botnick-prefix trigger --- PBot/Interpreter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index 3c682b96..9aac2ec1 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -111,7 +111,7 @@ sub process_line { } } elsif ($cmd_text =~ m/^$bot_trigger\s*(.+)$/) { $command = $1; - } elsif ($cmd_text =~ m/^.?$botnick.?\s*(.+)$/i) { + } elsif ($cmd_text =~ m/^.?\s*$botnick\s*[[:punct:]]?\s+(.+)$/i) { $command = $1; } elsif ($cmd_text =~ m/^(.+?),?\s*$botnick[?!.]*$/i) { $command = $1;