Skip to content

Commit

Permalink
[Permissions] Remove hook from is_owner check (Cog-Creators#2053)
Browse files Browse the repository at this point in the history
Signed-off-by: Toby Harradine <tobyharradine@gmail.com>
  • Loading branch information
Tobotimus committed Aug 25, 2018
1 parent dd5ef36 commit 9af58d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions redbot/core/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ async def check_overrides(ctx, *, level):

def is_owner(**kwargs):
async def check(ctx):
override = await check_overrides(ctx, level="owner")
return override if override is not None else await ctx.bot.is_owner(ctx.author, **kwargs)
return await ctx.bot.is_owner(ctx.author, **kwargs)

return commands.check(check)

Expand Down

0 comments on commit 9af58d3

Please sign in to comment.