mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Google: Fix snarfer with Python 3.
This commit is contained in:
parent
0608676d0a
commit
f8a57b78e4
@ -244,7 +244,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):
|
||||||
|
Loading…
Reference in New Issue
Block a user