From b6695172c85bd1a39ae3b9a04e3a22be3c0894ba Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 6 May 2016 09:02:54 +0200 Subject: [PATCH] Google: Add warning about deprecation. --- plugins/Google/plugin.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/Google/plugin.py b/plugins/Google/plugin.py index fd130ac43..055cfa1e3 100644 --- a/plugins/Google/plugin.py +++ b/plugins/Google/plugin.py @@ -94,8 +94,7 @@ class Google(callbacks.PluginRegexp): _gsearchUrl = 'https://www.google.com/search' def search(self, query, channel, options={}): - """Perform a search using Google's AJAX API. - search("search phrase", options={}) + """search("search phrase", options={}) Valid options are: smallsearch - True/False (Default: False) @@ -103,6 +102,12 @@ class Google(callbacks.PluginRegexp): language - Restrict search to documents in the given language (Default: "lang_en") """ + self.log.warning('The Google plugin search is deprecated since ' + 'Google closed their public API and will be removed in a ' + 'future release. Please consider switching to an other ' + 'plugin for your searches, like ' + ', ' + 'or .') ref = self.registryValue('referer') if not ref: ref = 'http://%s/%s' % (dynamic.irc.server,