discord changed their username scheme

pull/181/head
Aevann 2023-08-06 10:42:31 +03:00
parent e50de38705
commit 3811babd75
2 changed files with 0 additions and 4 deletions

View File

@ -220,8 +220,6 @@ def command_regex_matcher(match, upper=False):
reason_regex_post = re.compile('(/post/[0-9]+)', flags=re.A)
reason_regex_comment = re.compile('(/comment/[0-9]+)', flags=re.A)
discord_username_regex = re.compile("(\s|^|>).{2,32}#[0-9]{4}(?=[^0-9]|$)", flags=re.A)
numbered_list_regex = re.compile('((\s|^)[0-9]+)\. ', flags=re.A)
image_link_regex = re.compile(f"https://(i\.)?{SITE}\/(chat_)?images\/[0-9]{{11,17}}r?\.webp", flags=re.A)

View File

@ -532,8 +532,6 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
if g.v and g.v.admin_level >= PERMS["IGNORE_DOMAIN_BAN"]:
banned_domains = []
else:
if discord_username_regex.match(sanitized):
return error("Stop grooming!")
banned_domains = [x.domain for x in g.db.query(BannedDomain.domain).all()]
for link in links: