diff options
| -rw-r--r-- | bot/exts/filtering/_filters/domain.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bot/exts/filtering/_filters/domain.py b/bot/exts/filtering/_filters/domain.py index 2a0cd3c31..00a9a886f 100644 --- a/bot/exts/filtering/_filters/domain.py +++ b/bot/exts/filtering/_filters/domain.py @@ -39,11 +39,7 @@ class DomainFilter(Filter): for found_url in ctx.content: if self.content in found_url and tldextract.extract(found_url).registered_domain == domain: ctx.matches.append(self.content) - if ( - ("delete_messages" in self.actions and self.actions.get("delete_messages").delete_messages) - or not ctx.notification_domain - ): # Override this field only if this filter causes deletion. - ctx.notification_domain = self.content + ctx.notification_domain = self.content return not self.extra_fields.exact or self.content == found_url return False |