aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-05 09:57:19 -0400
committerGravatar ToxicKidz <[email protected]>2021-05-05 09:57:19 -0400
commit91cd758cec2ba5ffa7c6add55ec03aa9b382dd2a (patch)
tree8539c4c9a9e391675654f917d11ea8674ba1085b
parentchore: Don't send a message when redirecting eval output which would ping use... (diff)
parentfix: Add a missing return statement (diff)
Merge branch 'eval-redirect-output' of https://github.com/ToxicKidz/bot into eval-redirect-output
-rw-r--r--bot/decorators.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/decorators.py b/bot/decorators.py
index e4e640748..f65ec4103 100644
--- a/bot/decorators.py
+++ b/bot/decorators.py
@@ -144,6 +144,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