From 10fc03ab19b7ca6d2f685c49e64604026552811f Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 24 Feb 2013 01:51:40 +0100 Subject: [PATCH] Google: Fix snarfer with Python 3. --- plugins/Google/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Google/plugin.py b/plugins/Google/plugin.py index fe24f9fc1..ea4dccfc2 100644 --- a/plugins/Google/plugin.py +++ b/plugins/Google/plugin.py @@ -281,7 +281,7 @@ class Google(callbacks.PluginRegexp): data = self.search(searchString, msg.args[0], {'smallsearch': True}) if data['responseData']['results']: url = data['responseData']['results'][0]['unescapedUrl'] - irc.reply(url.encode('utf-8'), prefixNick=False) + irc.reply(url, prefixNick=False) googleSnarfer = urlSnarfer(googleSnarfer) def _googleUrl(self, s):