diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index d3addf79..23690951 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,7 +13,7 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 782, + BUILD_REVISION => 783, BUILD_DATE => "2014-08-31", }; diff --git a/modules/math.pl b/modules/math.pl index dfb3ad47..80276ff6 100755 --- a/modules/math.pl +++ b/modules/math.pl @@ -22,7 +22,7 @@ my $orig_arguments = $arguments; $arguments =~ s/answer.*question of life(,? the universe and everything)?\s?/42/gi; $arguments =~ s/meaning of (life|existence|everything)?/42/gi; -if($arguments =~ m/([\$`\|{}"'#@=])/) { +if($arguments =~ m/([\$`\|{}"'#@=?\[\]])/ or $arguments =~ m/(~~)/) { $invalid = $1; } else { while($arguments =~ /([a-zA-Z0-9]+)/g) {