diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index fafb461c0..db156f6de 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -501,6 +501,7 @@ PERMS = { # Minimum admin_level to perform action. 'MODS_EVERY_HOLE': 5, 'MODS_EVERY_GROUP': 5, 'IGNORE_AWARD_IMMUNITY': 5, + 'GROOMING': 5, } FEATURES = { diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 583c7dffd..58608ed5c 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -545,7 +545,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_emojis= if y.startswith(x.domain): return error(f'Remove the banned link "{x.domain}" and try again!\nReason for link ban: "{x.reason}"') - if discord_username_regex.match(sanitized): + if discord_username_regex.match(sanitized) and not (g.v and g.v.admin_level >= PERMS["GROOMING"]): return error("Stop grooming!") if '
' not in sanitized and blackjack != "rules":