diff --git a/nomen/notifications.py b/nomen/notifications.py index 3513792..e0e3172 100644 --- a/nomen/notifications.py +++ b/nomen/notifications.py @@ -54,9 +54,9 @@ async def handle_triggers(ctx, message): disabled = await ctx.bot.db.execute_fetchall( "SELECT EXISTS(SELECT * FROM users WHERE user_id=:author AND disabled IS 1)", params - )[0] + ) - if disabled: + if disabled[0][0]: log.debug(f"User {ctx.author} ({ctx.author.id}) opted out") return