aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Vivek Ashokkumar <[email protected]>2024-04-15 04:53:54 +0530
committerGravatar GitHub <[email protected]>2024-04-15 04:53:54 +0530
commitdce89a9ab3be38a4f88fab449a7158c6c75989fc (patch)
tree0fbc597725f1550476ea3e1d3934421d13d2b185
parentUse regex to detect Discord invite link (diff)
Update comment for clarity on skipping adding of phishing button
-rw-r--r--bot/exts/filtering/_ui/ui.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/filtering/_ui/ui.py b/bot/exts/filtering/_ui/ui.py
index e6c39dc75..8d96a3521 100644
--- a/bot/exts/filtering/_ui/ui.py
+++ b/bot/exts/filtering/_ui/ui.py
@@ -619,7 +619,8 @@ class AlertView(discord.ui.View):
super().__init__(timeout=ALERT_VIEW_TIMEOUT)
self.ctx = ctx
if "banned" in self.ctx.action_descriptions:
- # If the user has already been banned, do not attempt to add phishing button
+ # If the user has already been banned, do not attempt to add phishing button since the URL or guild invite
+ # is probably already added as a filter
return
phishing_content, target_filter_list = self._extract_potential_phish(triggered_filters)
if phishing_content: