BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Coding and development discussion => Topic started by: Malosar on January 16, 2007, 10:14:56 pm

Title: Minor Calc bug
Post by: Malosar on January 16, 2007, 10:14:56 pm
This annoyed me the other day whilst twinking, if your calculation resolves to 0, it says the format is wrong.... since 0 is classed as "empty". Not very important just might want to update SVN or something.

Need to change
Code: [Select]
if (!empty($result))
return $result;
else
return "Wrong syntax, please /tell <botname> <pre>help <pre>calc";

to

Code: [Select]
if (!empty($result) || $result == 0)
return $result;
else
return "Wrong syntax, please /tell <botname> <pre>help <pre>calc";
Title: Re: Minor Calc bug
Post by: Khalem on January 22, 2007, 06:35:10 pm
Fixed in both branches.
SimplePortal 2.3.7 © 2008-2024, SimplePortal