mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Fix the passing of quoted text on to Google searches ... again. This time it's
correct. ;)
This commit is contained in:
parent
823c91ff44
commit
3ae730a94c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user