]> git.donarmstrong.com Git - infobot.git/commitdiff
commiting for tom lear fixes #456939
authornoop <noop@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 19 Oct 2001 23:59:07 +0000 (23:59 +0000)
committernoop <noop@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 19 Oct 2001 23:59:07 +0000 (23:59 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@527 c11ca15a-4712-0410-83d8-924469b57eb5

src/Modules/Math.pl

index c5a1f6bbfc8a8c0793ed754e0d2bdd02fcdb1805..caecf9f70fd594117c61482ac358b2067a58d893 100644 (file)
@@ -104,6 +104,7 @@ sub perlMath {
        && ($locMsg !~ /^\s*[( )]+\s*$/)
        && ($locMsg =~ /\d+/)
     ) {
+       $locMsg =~ s/([0-9]+\.[0-9]+(\.[0-9]+)+)/"$1"/g;
        $locMsg = eval($locMsg);
 
        if (defined $locMsg and $locMsg =~ /^[-+\de\.]+$/) {