mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Merge pull request #377 from Hoaas/testing
Google: Fix currency conversions.
This commit is contained in:
commit
a3cf9f8b45
@ -291,6 +291,11 @@ class Google(callbacks.PluginRegexp):
|
|||||||
.replace('\\', '\\\\')
|
.replace('\\', '\\\\')
|
||||||
js = simplejson.loads(js)
|
js = simplejson.loads(js)
|
||||||
|
|
||||||
|
# Currency conversion
|
||||||
|
if js['icc'] == True:
|
||||||
|
irc.reply("%s = %s" % (js['lhs'], js['rhs'],))
|
||||||
|
return
|
||||||
|
|
||||||
url = self._googleUrl(expr)
|
url = self._googleUrl(expr)
|
||||||
html = utils.web.getUrl(url)
|
html = utils.web.getUrl(url)
|
||||||
match = self._calcRe1.search(html)
|
match = self._calcRe1.search(html)
|
||||||
|
Loading…
Reference in New Issue
Block a user