fix prev commit

master
Aevann1 2022-10-30 20:47:49 +02:00
parent 62d3738e46
commit e50e2fcae8
1 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ def comment(v):
if SITE == 'pcmemes.net' and c.body.lower().startswith("based"): if SITE == 'pcmemes.net' and c.body.lower().startswith("based"):
execute_basedbot(c, level, body, parent_submission, parent_post, v) execute_basedbot(c, level, body, parent_submission, parent_post, v)
if post.id not in ADMIGGER_THREADS and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower() and parent_post.sub != 'chudrama': if parent_post.id not in ADMIGGER_THREADS and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower() and parent_post.sub != 'chudrama':
c.is_banned = True c.is_banned = True
c.ban_reason = "AutoJanny" c.ban_reason = "AutoJanny"
g.db.add(c) g.db.add(c)
@ -462,7 +462,7 @@ def edit_comment(cid, v):
execute_blackjack(v, c, c.body, "comment") execute_blackjack(v, c, c.body, "comment")
if post.id not in ADMIGGER_THREADS and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower() and c.post.sub != 'chudrama': if c.post.id not in ADMIGGER_THREADS and v.agendaposter and not v.marseyawarded and AGENDAPOSTER_PHRASE not in c.body.lower() and c.post.sub != 'chudrama':
abort(403, f'You have to include "{AGENDAPOSTER_PHRASE}" in your comment!') abort(403, f'You have to include "{AGENDAPOSTER_PHRASE}" in your comment!')