mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 03:33:06 +01:00
Interpreter: fix potential misparse of botnick-prefix trigger
This commit is contained in:
parent
cadb9cc3e9
commit
b114d14fb1
@ -111,7 +111,7 @@ sub process_line {
|
|||||||
}
|
}
|
||||||
} elsif ($cmd_text =~ m/^$bot_trigger\s*(.+)$/) {
|
} elsif ($cmd_text =~ m/^$bot_trigger\s*(.+)$/) {
|
||||||
$command = $1;
|
$command = $1;
|
||||||
} elsif ($cmd_text =~ m/^.?$botnick.?\s*(.+)$/i) {
|
} elsif ($cmd_text =~ m/^.?\s*$botnick\s*[[:punct:]]?\s+(.+)$/i) {
|
||||||
$command = $1;
|
$command = $1;
|
||||||
} elsif ($cmd_text =~ m/^(.+?),?\s*$botnick[?!.]*$/i) {
|
} elsif ($cmd_text =~ m/^(.+?),?\s*$botnick[?!.]*$/i) {
|
||||||
$command = $1;
|
$command = $1;
|
||||||
|
Loading…
Reference in New Issue
Block a user