mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 20:09:43 +01:00
Core/Interpreter: require whitespace in front of bot name for suffix-trigger
This commit is contained in:
parent
38a0b8705f
commit
f3ad345340
@ -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) {
|
} elsif ($cmd_text =~ m/^.?\s*$botnick\s*[[:punct:]]?\s+(.+)$/i) {
|
||||||
# "botnick: command"
|
# "botnick: command"
|
||||||
$command = $1;
|
$command = $1;
|
||||||
} elsif ($cmd_text =~ m/^(.+?),?\s*$botnick[?!.]*$/i) {
|
} elsif ($cmd_text =~ m/^(.+?),?\s+$botnick[?!.]*$/i) {
|
||||||
# "command, botnick?"
|
# "command, botnick?"
|
||||||
$command = $1;
|
$command = $1;
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,8 @@ use PBot::Imports;
|
|||||||
# These are set by the /misc/update_version script
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4676,
|
BUILD_REVISION => 4678,
|
||||||
BUILD_DATE => "2023-05-14",
|
BUILD_DATE => "2023-05-21",
|
||||||
};
|
};
|
||||||
|
|
||||||
sub initialize {}
|
sub initialize {}
|
||||||
|
Loading…
Reference in New Issue
Block a user