Skip to content

Commit b02dd7b

Browse files
authored
Censor links with discordapp.com/invite (#28)
1 parent 630b799 commit b02dd7b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/discord/censor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def discord_invite_censor_needed(self, content: str) -> bool:
123123
) and (
124124
len(re.findall("discord.gg", content, re.I)) > 0
125125
or len(re.findall("discord.com/invite", content, re.I)) > 0
126+
or len(re.findall("discordapp.com/invite", content, re.I)) > 0
126127
):
127128
return True
128129
return False

0 commit comments

Comments
 (0)