forked from rDrama/rDrama
1
0
Fork 0
Aevann 2023-12-01 21:47:14 +02:00
parent a9f8d81343
commit 1a1c64f385
1 changed files with 14 additions and 12 deletions

View File

@ -495,6 +495,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
emojis_used = set()
if not (author and author.hieroglyphs):
emojis = list(emoji_regex.finditer(sanitized))
if len(emojis) > 20: golden = False
@ -512,6 +513,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis
sanitized = sanitized.replace(old, new)
emojis = list(emoji_regex2.finditer(sanitized))
if len(emojis) > 20: golden = False