ProgVal/Limnoria — pull request #388 by Hoaas (2012-08-17 15:22:30+00:00)
Title: Google: Stop output when there are no result.

Stops output of regular results on queries that the calc command can not handle. Also allows for output on a few things that the regex does not catch like simply 'e' or 'gamma' (that one is ugly though).

Everything that is outputed by irc.reply("%s = %s" % (js['lhs'], js['rhs'],)) might still be ugly (for example if the number is large enough). It might contain html like and \x encoding. Have not been able to figure out how to get around that.

Tested with examples from http://www.googleguide.com/calculator.html