3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-23 19:22:40 +01:00

Interpreter: fix potential misparse of botnick-prefix trigger

This commit is contained in:
Pragmatic Software 2020-08-20 20:14:28 -07:00
parent cadb9cc3e9
commit b114d14fb1

View File

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