3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +01:00

Remove trailing comma or colon from end of keyword if other characters exist before it; allow sentence-like arguments again

This commit is contained in:
Pragmatic Software 2010-06-30 12:18:25 +00:00
parent 31e53f2aff
commit affb2c66d5
2 changed files with 5 additions and 2 deletions

View File

@ -199,6 +199,9 @@ sub interpreter {
my ($result, $channel);
my $pbot = $self->{pbot};
# remove trailing comma or colon from keyword if keyword has other characters beforehand
$keyword =~ s/^(.+)[:,]$/$1/;
return undef if not length $keyword;
my $original_keyword = $keyword;
@ -297,7 +300,7 @@ sub interpreter {
$result =~ s/^/\/say $arguments: $keyword is / unless (defined $tonick);
}
} else {
return undef;
# return undef;
}
}
} else {

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 224,
BUILD_REVISION => 225,
BUILD_DATE => "2010-06-30",
};