diff options
| author | 2020-02-06 22:00:13 +0100 | |
|---|---|---|
| committer | 2020-02-06 22:00:13 +0100 | |
| commit | 4653dadbbe929055355892b322e4b0cfd3e09ab6 (patch) | |
| tree | f96e43936bcfecfebee0484d511342fc4c17ef95 | |
| parent | Fix up imports a bit; there's no need to import all of discord and typing for... (diff) | |
Change if statement to elif; if the first if statement returns true, the second cannot be true making it unneccesary to check
| -rw-r--r-- | bot/cogs/information.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/information.py b/bot/cogs/information.py index 3b8a88309..e1a68ee63 100644 --- a/bot/cogs/information.py +++ b/bot/cogs/information.py @@ -147,7 +147,7 @@ class Information(Cog): user = ctx.author # Do a role check if this is being executed on someone other than the caller - if user != ctx.author and not with_role_check(ctx, *constants.MODERATION_ROLES): + elif user != ctx.author and not with_role_check(ctx, *constants.MODERATION_ROLES): await ctx.send("You may not use this command on users other than yourself.") return |