Skip to content

Filtering: don't attempt to send additional embeds for invalid invites#936

Merged
kwzrd merged 2 commits into
masterfrom
bug/filters/929/invalid-invites
May 25, 2020
Merged

Filtering: don't attempt to send additional embeds for invalid invites#936
kwzrd merged 2 commits into
masterfrom
bug/filters/929/invalid-invites

Conversation

@MarkKoz
Copy link
Copy Markdown
Contributor

@MarkKoz MarkKoz commented May 10, 2020

Invalid invites won't have data available to put in the embeds, so don't send them! Moderators will still be notified the filter was triggered. However, I'm open to changing this since it was suggested invalid invites could be could be outright ignored.

Fixes #929
Fixes BOT-3Z

Invalid invites won't have data available to put in the embeds.

Fixes #929
Fixes BOT-3Z
@MarkKoz MarkKoz added t: bug Something isn't working a: filters Related to message filters: (antimalware, antispam, filtering, token_remover) p: 2 - normal Normal Priority status: needs review labels May 10, 2020
@MarkKoz MarkKoz requested a review from a team as a code owner May 10, 2020 20:01
@MarkKoz MarkKoz requested review from eivl and scragly and removed request for a team May 10, 2020 20:01
Copy link
Copy Markdown
Member

@Den4200 Den4200 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and it works!

Copy link
Copy Markdown
Contributor

@kwzrd kwzrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix! Let's get this merged.

The cog looks like it could use a rewrite - but let's leave that for another day.

@kwzrd kwzrd merged commit 0e26ee3 into master May 25, 2020
@kwzrd kwzrd deleted the bug/filters/929/invalid-invites branch May 25, 2020 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: filters Related to message filters: (antimalware, antispam, filtering, token_remover) p: 2 - normal Normal Priority t: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invite Filter Raises on Invalid Invites

3 participants