From 3ae730a94cc093432f11c8da1ed34abf2a131a97 Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 17 Mar 2004 13:38:04 +0000 Subject: [PATCH] Fix the passing of quoted text on to Google searches ... again. This time it's correct. ;) --- plugins/Google.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/Google.py b/plugins/Google.py index e2e04c79e..f16b1a51e 100644 --- a/plugins/Google.py +++ b/plugins/Google.py @@ -102,7 +102,7 @@ def search(log, queries, **kwargs): for (i, query) in enumerate(queries): if len(query.split(None, 1)) > 1: queries[i] = repr(query) - data = google.doGoogleSearch(' '.join(query), **kwargs) + data = google.doGoogleSearch(' '.join(queries), **kwargs) now = time.time() totalSearches += 1 totalTime += data.meta.searchTime @@ -203,9 +203,6 @@ class Google(callbacks.PrivmsgCommandAndRegexp): kwargs['filter'] = False else: kwargs[option[2:]] = argument - for (i, arg) in enumerate(args): - if len(arg.split()) > 1: - args[i] = repr(arg) try: data = search(self.log, rest, **kwargs) except google.NoLicenseKey, e: