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
-
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
if (!empty($result))
return $result;
else
return "Wrong syntax, please /tell <botname> <pre>help <pre>calc";
to
if (!empty($result) || $result == 0)
return $result;
else
return "Wrong syntax, please /tell <botname> <pre>help <pre>calc";
-
Fixed in both branches.