add GROOMING janny perm

pull/146/head
Aevann 2023-05-07 20:39:30 +03:00
parent 9c5015d662
commit 2d88c54209
2 changed files with 2 additions and 1 deletions

View File

@ -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 = {

View File

@ -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 '<pre>' not in sanitized and blackjack != "rules":