aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Deniz <[email protected]>2020-02-06 22:00:13 +0100
committerGravatar Deniz <[email protected]>2020-02-06 22:00:13 +0100
commit4653dadbbe929055355892b322e4b0cfd3e09ab6 (patch)
treef96e43936bcfecfebee0484d511342fc4c17ef95
parentFix 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.py2
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