forked from rDrama/rDrama
same as last commit
parent
aeb30e7f13
commit
3fe80c4f4d
|
@ -41,12 +41,12 @@ messages = cache.get(f'messages') or {
|
||||||
def chat(v):
|
def chat(v):
|
||||||
if not v.admin_level and TRUESCORE_CHAT_MINIMUM and v.truescore < TRUESCORE_CHAT_MINIMUM:
|
if not v.admin_level and TRUESCORE_CHAT_MINIMUM and v.truescore < TRUESCORE_CHAT_MINIMUM:
|
||||||
abort(403, f"Need at least {TRUESCORE_CHAT_MINIMUM} truescore for access to chat.")
|
abort(403, f"Need at least {TRUESCORE_CHAT_MINIMUM} truescore for access to chat.")
|
||||||
return render_template("chat.html", v=v, messages=messages[f"{SITE_FULL}{request.path}"])
|
return render_template("chat.html", v=v, messages=messages[f"{SITE_FULL}/chat"])
|
||||||
|
|
||||||
@app.get("/admin/chat")
|
@app.get("/admin/chat")
|
||||||
@admin_level_required(2)
|
@admin_level_required(2)
|
||||||
def admin_chat(v):
|
def admin_chat(v):
|
||||||
return render_template("chat.html", v=v, messages=messages[f"{SITE_FULL}{request.path}"])
|
return render_template("chat.html", v=v, messages=messages[f"{SITE_FULL}/admin/chat"])
|
||||||
|
|
||||||
@socketio.on('speak')
|
@socketio.on('speak')
|
||||||
@limiter.limit("3/second;10/minute")
|
@limiter.limit("3/second;10/minute")
|
||||||
|
|
Loading…
Reference in New Issue