fix chud distingusih exception

master
Aevann 2024-10-19 12:04:39 +03:00
parent 80a3368008
commit ab926118d5
3 changed files with 3 additions and 2 deletions

View File

@ -873,6 +873,7 @@ def torture_chud(string, username):
def complies_with_chud(obj):
#check for cases where u should leave
if obj.distinguished: return True
if not obj.chudded: return True
if obj.author.hieroglyphs: return True

View File

@ -275,7 +275,7 @@ def comment(v):
if c.level == 1: c.top_comment_id = c.id
else: c.top_comment_id = parent.top_comment_id
if not c.distinguished and not complies_with_chud(c):
if not complies_with_chud(c):
c.is_banned = True
c.ban_reason = "AutoJanny for lack of chud phrase"
g.db.add(c)

View File

@ -694,7 +694,7 @@ def submit_post(v, hole=None):
else:
stop(415)
if not p.distinguished and not p.draft and not complies_with_chud(p):
if not p.draft and not complies_with_chud(p):
p.is_banned = True
p.ban_reason = "AutoJanny for lack of chud phrase"