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:
parent
595e6a34d2
commit
7fa458ab34
@ -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;
|
||||||
|
@ -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",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user