Revise marsify logic.
parent
f773d1fefc
commit
0b416dcf2c
|
@ -78,7 +78,7 @@ def award_timers(v, bot=False):
|
||||||
v.earlylife = None
|
v.earlylife = None
|
||||||
notify_if_not_bot("Your earlylife status has expired!")
|
notify_if_not_bot("Your earlylife status has expired!")
|
||||||
badge = v.has_badge(169)
|
badge = v.has_badge(169)
|
||||||
if v.marsify and v.marsify < now:
|
if v.marsify and v.marsify < now and v.marsify != 1:
|
||||||
v.marsify = 0
|
v.marsify = 0
|
||||||
if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!")
|
if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!")
|
||||||
badge = v.has_badge(170)
|
badge = v.has_badge(170)
|
||||||
|
|
|
@ -382,8 +382,9 @@ def award_thing(v, thing_type, id):
|
||||||
author.verified = "Verified"
|
author.verified = "Verified"
|
||||||
badge_grant(user=author, badge_id=150)
|
badge_grant(user=author, badge_id=150)
|
||||||
elif kind == 'marsify':
|
elif kind == 'marsify':
|
||||||
if author.marsify: author.marsify += 21600
|
if not author.marsify or author.marsify != 1:
|
||||||
else: author.marsify = int(time.time()) + 21600
|
if author.marsify: author.marsify += 21600
|
||||||
|
else: author.marsify = int(time.time()) + 21600
|
||||||
badge_grant(user=author, badge_id=170)
|
badge_grant(user=author, badge_id=170)
|
||||||
|
|
||||||
if thing_type == 'comment' and (not author.deflector or v.id == AEVANN_ID):
|
if thing_type == 'comment' and (not author.deflector or v.id == AEVANN_ID):
|
||||||
|
|
Loading…
Reference in New Issue