From e19ff328b6da68eab3c405bd82556df5eafe3f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Terje=20Ho=C3=A5s?= Date: Fri, 13 Jul 2012 19:05:21 +0200 Subject: [PATCH] Google: Fix currency conversions. --- plugins/Google/plugin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/Google/plugin.py b/plugins/Google/plugin.py index c7ad653ba..e67d5d4a4 100644 --- a/plugins/Google/plugin.py +++ b/plugins/Google/plugin.py @@ -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)