From 0dc968f177b2e048407693737cb3a58ce1721678 Mon Sep 17 00:00:00 2001 From: Myned Date: Sat, 28 Oct 2017 16:30:46 -0400 Subject: [PATCH] Fixed naming error --- src/main/cogs/booru.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cogs/booru.py b/src/main/cogs/booru.py index bcf9263..0804d62 100644 --- a/src/main/cogs/booru.py +++ b/src/main/cogs/booru.py @@ -459,7 +459,7 @@ class MsG: def check(msg): if msg.content.lower() == 'stop' and msg.channel is channel and msg.author.guild_permissions.administrator: raise exc.Abort - elif msg.channel is channel and message.author.id != self.bot.user.id and (re.search('(http[a-z]?:\/\/[^ ]*\.(?:gif|png|jpg|jpeg))', msg.content) is not None or msg.attachments): + elif msg.channel is channel and msg.author.id != self.bot.user.id and (re.search('(https?:\/\/[^ ]*\.(?:gif|png|jpg|jpeg))', msg.content) is not None or msg.attachments or msg.embeds): return True return False