From 6668030cd3ae14c09d6198fe307e1cbaba604c41 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Tue, 29 Jan 2019 00:06:05 -0600 Subject: [PATCH] COrrect bool comparison --- cogs/roles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/roles.py b/cogs/roles.py index f3ff9dd..8065973 100644 --- a/cogs/roles.py +++ b/cogs/roles.py @@ -24,7 +24,7 @@ class Roles: EXAMPLE: !colour red RESULT: A role that matches red (#e74c3c) will be given to you""" result = await ctx.bot.db.fetchrow("SELECT colour_roles FROM guilds WHERE id = $1", ctx.guild.id) - if result and result["colour_roles"]: + if result and not result["colour_roles"]: await ctx.send("Colour roles not allowed on this server! " "The command `allowcolours` must be ran to enable them!") return