forked from rDrama/rDrama
prevent ppl from wasting their chud awards
parent
3ac5fad2d8
commit
d9ef62b9c6
|
@ -246,10 +246,13 @@ def award_thing(v, thing_type, id):
|
||||||
cache.delete_memoized(frontlist)
|
cache.delete_memoized(frontlist)
|
||||||
else: thing.stickied_utc = t
|
else: thing.stickied_utc = t
|
||||||
g.db.add(thing)
|
g.db.add(thing)
|
||||||
elif kind == "agendaposter" and not (author.agendaposter and author.agendaposter == 0):
|
elif kind == "agendaposter":
|
||||||
if author.marseyawarded:
|
if author.marseyawarded:
|
||||||
abort(409, "This user is under the effect of a conflicting award: Marsey award.")
|
abort(409, "This user is under the effect of a conflicting award: Marsey award.")
|
||||||
|
|
||||||
|
if author.agendaposter and author.agendaposter == 0:
|
||||||
|
abort(409, "This user is perma-chudded.")
|
||||||
|
|
||||||
if author.agendaposter and time.time() < author.agendaposter: author.agendaposter += 86400
|
if author.agendaposter and time.time() < author.agendaposter: author.agendaposter += 86400
|
||||||
else: author.agendaposter = int(time.time()) + 86400
|
else: author.agendaposter = int(time.time()) + 86400
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue