3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 11:59:43 +01:00

Core/Interpreter: require whitespace in front of bot name for suffix-trigger

This commit is contained in:
Pragmatic Software 2023-05-21 16:16:06 -07:00
parent 38a0b8705f
commit f3ad345340
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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 {}