mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 03:33:06 +01:00
Fix derp in math.pl
This commit is contained in:
parent
cb6d811ba2
commit
f13adc1500
@ -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",
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user