aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-04-22 20:14:15 -0400
committerGravatar GitHub <[email protected]>2021-04-22 20:14:15 -0400
commitded578e6b81ca2a39e383472a5a0a4071586f94c (patch)
tree26b0fbe83f060552d44885b2fb8e7c18ed225f0f
parentchore: Redirect output to bot-commands channel for the eval command (diff)
fix: Add a missing return statement
-rw-r--r--bot/decorators.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/decorators.py b/bot/decorators.py
index 5d9d74bd7..2d0f8bf0d 100644
--- a/bot/decorators.py
+++ b/bot/decorators.py
@@ -141,6 +141,7 @@ def redirect_output(
elif categories and ctx.channel.category.id not in categories:
log.trace(f"{ctx.author} used {ctx.command} in a category that can bypass output redirection")
await func(self, ctx, *args, **kwargs)
+ return
redirect_channel = ctx.guild.get_channel(destination_channel)
old_channel = ctx.channel