3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +02:00

Fix derp in math.pl

This commit is contained in:
Pragmatic Software 2014-03-24 03:10:08 +00:00
parent cb6d811ba2
commit f13adc1500
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 533,
BUILD_REVISION => 534,
BUILD_DATE => "2014-03-23",
};

View File

@ -23,7 +23,7 @@ if($arguments =~ m/([\$`\|{}"'#@=])/) {
} else {
while($arguments =~ /([a-zA-Z0-9]+)/g) {
my $keyword = $1;
next if $keyword =~ m/^[0-9]$/;
next if $keyword =~ m/^[0-9]+$/;
$invalid = $keyword and last if not grep { /^$keyword$/ } @valid_keywords;
}
}