Google: Fix snarfer with Python 3.

This commit is contained in:
Valentin Lorentz 2013-02-24 01:51:40 +01:00
parent 7f2d38b885
commit 10fc03ab19

View File

@ -281,7 +281,7 @@ class Google(callbacks.PluginRegexp):
data = self.search(searchString, msg.args[0], {'smallsearch': True}) data = self.search(searchString, msg.args[0], {'smallsearch': True})
if data['responseData']['results']: if data['responseData']['results']:
url = data['responseData']['results'][0]['unescapedUrl'] url = data['responseData']['results'][0]['unescapedUrl']
irc.reply(url.encode('utf-8'), prefixNick=False) irc.reply(url, prefixNick=False)
googleSnarfer = urlSnarfer(googleSnarfer) googleSnarfer = urlSnarfer(googleSnarfer)
def _googleUrl(self, s): def _googleUrl(self, s):