add GROOMING janny perm
parent
9c5015d662
commit
2d88c54209
|
@ -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 = {
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue