From 6ba43bb86a5f873528921e4e5467f16ce8009a72 Mon Sep 17 00:00:00 2001 From: Emil Hammarstrom Date: Mon, 8 Feb 2016 20:49:14 +0100 Subject: [PATCH] Fixed too many small bugs. --- cogs/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/image.py b/cogs/image.py index 17821ba22..6ddbb695d 100644 --- a/cogs/image.py +++ b/cogs/image.py @@ -24,7 +24,7 @@ class Image: items = imgurclient.gallery_random(page=0) await self.bot.say(items[rand].link) elif text[0] == "search": - items = imgurclient.gallery_search(text[1:len(text)], advanced=None, sort='time', window='all', page=0) + items = imgurclient.gallery_search(" ".join(text[1:len(text)]), advanced=None, sort='time', window='all', page=0) if len(items) < 1: await self.bot.say("Your search terms gave no results.") else: