forked from MarseyWorld/MarseyWorld
discord changed their username scheme
parent
e50de38705
commit
3811babd75
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue