From f3ad345340e025367b03179c65095859e620e993 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 21 May 2023 16:16:06 -0700 Subject: [PATCH] Core/Interpreter: require whitespace in front of bot name for suffix-trigger --- lib/PBot/Core/Interpreter.pm | 2 +- lib/PBot/VERSION.pm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/PBot/Core/Interpreter.pm b/lib/PBot/Core/Interpreter.pm index b142a62d..9e2e7c37 100644 --- a/lib/PBot/Core/Interpreter.pm +++ b/lib/PBot/Core/Interpreter.pm @@ -152,7 +152,7 @@ sub process_line($self, $from, $nick, $user, $host, $text, $tags = '', $is_comma } elsif ($cmd_text =~ m/^.?\s*$botnick\s*[[:punct:]]?\s+(.+)$/i) { # "botnick: command" $command = $1; - } elsif ($cmd_text =~ m/^(.+?),?\s*$botnick[?!.]*$/i) { + } elsif ($cmd_text =~ m/^(.+?),?\s+$botnick[?!.]*$/i) { # "command, botnick?" $command = $1; } diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 56a675d6..570af9e4 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,8 +25,8 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4676, - BUILD_DATE => "2023-05-14", + BUILD_REVISION => 4678, + BUILD_DATE => "2023-05-21", }; sub initialize {}