3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 20:39:26 +01:00

Do not expand me or remove trailing punctuation for factset/factchange

This commit is contained in:
Pragmatic Software 2014-04-29 04:05:20 +00:00
parent 595e6a34d2
commit 7fa458ab34
2 changed files with 7 additions and 2 deletions

View File

@ -259,7 +259,12 @@ sub interpret {
$keyword = $command; $keyword = $command;
} }
if($keyword ne "factadd" and $keyword ne "add" and $keyword ne "msg") { if($keyword ne "factadd"
and $keyword ne "add"
and $keyword ne "factset"
and $keyword ne "factchange"
and $keyword ne "change"
and $keyword ne "msg") {
$keyword =~ s/(\w+)([?!.]+)$/$1/; $keyword =~ s/(\w+)([?!.]+)$/$1/;
$arguments =~ s/(\w+)([?!.]+)$/$1/; $arguments =~ s/(\w+)([?!.]+)$/$1/;
$arguments =~ s/(?<![\w\/\-])me\b/$nick/gi if defined $arguments; $arguments =~ s/(?<![\w\/\-])me\b/$nick/gi if defined $arguments;

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script # These are set automatically by the build/commit script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 557, BUILD_REVISION => 558,
BUILD_DATE => "2014-04-28", BUILD_DATE => "2014-04-28",
}; };