forked from rDrama/rDrama
accurate error msg
parent
ff4d09b2cc
commit
a13b6f7ad7
|
@ -562,7 +562,7 @@ def award_thing(v, thing_type, id):
|
||||||
session['event_music'] = False
|
session['event_music'] = False
|
||||||
elif kind in {"ectoplasm", "candycorn", "candycane", "stab", "tilt"}:
|
elif kind in {"ectoplasm", "candycorn", "candycane", "stab", "tilt"}:
|
||||||
if obj.is_longpost:
|
if obj.is_longpost:
|
||||||
abort(403, f'Effortposts are protected from the {award_title} award!')
|
abort(403, f'Long posts are protected from the {award_title} award!')
|
||||||
elif kind == "gold":
|
elif kind == "gold":
|
||||||
if obj.award_count('glowie', v):
|
if obj.award_count('glowie', v):
|
||||||
abort(409, f"This {thing_type} is under the effect of a conflicting award: Glowie award!")
|
abort(409, f"This {thing_type} is under the effect of a conflicting award: Glowie award!")
|
||||||
|
|
Loading…
Reference in New Issue