1
0
Fork 0
mirror of synced 2024-05-19 12:02:29 +12:00

Correct how the methods are called

This commit is contained in:
phxntxm 2018-09-23 17:51:31 -05:00
parent 297aeb0b6e
commit a173451164

View file

@ -70,7 +70,7 @@ def is_owner(ctx):
return ctx.bot.owner.id == ctx.message.author.id return ctx.bot.owner.id == ctx.message.author.id
def should_not_ignore(ctx): def should_ignore(ctx):
if ctx.message.guild is None: if ctx.message.guild is None:
return False return False
ignored = ctx.bot.db.load('server_settings', key=ctx.message.guild.id, pluck='ignored') ignored = ctx.bot.db.load('server_settings', key=ctx.message.guild.id, pluck='ignored')
@ -193,7 +193,7 @@ def can_run(**kwargs):
if not await check_not_restricted(ctx): if not await check_not_restricted(ctx):
return False return False
# Then if the user/channel should be ignored # Then if the user/channel should be ignored
if not should_not_ignore(ctx): if should_ignore(ctx):
return False return False
# Otherwise....we're good # Otherwise....we're good
return True return True