try bug fix in purge

This commit is contained in:
Dustin Pianalto
2018-06-08 15:21:19 -08:00
parent 916e605a6e
commit 5c60a9ec7a
4 changed files with 29 additions and 0 deletions
+3
View File
@@ -533,6 +533,9 @@ class Utils:
return True
prefixes = self.bot.loop.create_task(self.bot.db_con.fetchval('select prefix from guild_config '
'where guild_id = $1', ctx.guild.id))
while not prefixes.done():
pass
prefixes = prefixes.result()
if prefixes:
for prefix in prefixes:
if message.content.startswith(prefix):