mirror of
https://github.com/progval/Limnoria.git
synced 2025-05-08 12:15:25 -05:00
Google: Fix currency conversions.
This commit is contained in:
parent
ac3724d326
commit
e19ff328b6
1 changed files with 5 additions and 0 deletions
|
@ -291,6 +291,11 @@ class Google(callbacks.PluginRegexp):
|
|||
.replace('\\', '\\\\')
|
||||
js = simplejson.loads(js)
|
||||
|
||||
# Currency conversion
|
||||
if js['icc'] == True:
|
||||
irc.reply("%s = %s" % (js['lhs'], js['rhs'],))
|
||||
return
|
||||
|
||||
url = self._googleUrl(expr)
|
||||
html = utils.web.getUrl(url)
|
||||
match = self._calcRe1.search(html)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue