mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 12:29:27 +01:00
Require curly braces or backticks around embedded commands
This commit is contained in:
parent
8bb7dfece6
commit
43418c1bc6
@ -112,7 +112,7 @@ sub process_line {
|
||||
} elsif($cmd_text =~ s/^(.*?),?\s*$botnick[?!.]*$//i) {
|
||||
$command = $1;
|
||||
$processed += 100;
|
||||
} elsif ($cmd_text =~ s/\B$bot_trigger([^ ]+)//) {
|
||||
} elsif ($cmd_text =~ s/\B$bot_trigger`([^`]+)// || $cmd_text =~ s/\B$bot_trigger\{([^}]+)//) {
|
||||
my $cmd = $1;
|
||||
$cmd =~ s/(.)[.!?;,)]$/$1/;
|
||||
my ($nick) = $cmd_text =~ m/^([^ ,:;]+)/;
|
||||
|
Loading…
Reference in New Issue
Block a user