mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 17:05:43 -04:00
changing it to ignore \s and - as command callers
This commit is contained in:
parent
fc3d267c92
commit
a570ad9486
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ sub _parse_for_commands {
|
|||
my $command_re = join '|', map "\Q$_", keys %$commands;
|
||||
$command_re = qr/$command_re/; #TODO move to _pre_build_chains and switch to Trie
|
||||
|
||||
if( $said->{body} =~ s/^\s*($command_re)[ \t:,;.-]\s*(.+)/$2/
|
||||
if( $said->{body} =~ s/^\s*($command_re)[:,;]\s*(.+)/$2/
|
||||
or $said->{body} =~ s/^\s*($command_re)\s*$// ) {
|
||||
|
||||
my $found_command = $1;
|
||||
|
|
Loading…
Add table
Reference in a new issue