aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2023-07-22 20:19:00 +0300
committerGravatar mbaruh <[email protected]>2023-07-22 20:19:00 +0300
commitfa4f2330126f03bb9671f0ec8af863df6c6b4f9b (patch)
tree0c24d8e109892978f81de8bc949342a5ab9b23f1
parentDon't handle discord invites as domains in phishing detection (diff)
Make the moderator the author of the compban for phishing attempts
-rw-r--r--bot/exts/filtering/_ui/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/filtering/_ui/ui.py b/bot/exts/filtering/_ui/ui.py
index c2961452d..ec5227198 100644
--- a/bot/exts/filtering/_ui/ui.py
+++ b/bot/exts/filtering/_ui/ui.py
@@ -558,7 +558,7 @@ class PhishConfirmationView(discord.ui.View):
if not compban_command:
await interaction.followup.send(':warning: Could not find the command "compban".')
else:
- ctx = FakeContext(interaction.message, interaction.channel, compban_command)
+ ctx = FakeContext(interaction.message, interaction.channel, compban_command, author=self.mod)
await compban_command(ctx, self.offender)
compf_command = bot.instance.get_command("compfilter")