same as last commit
parent
21d2ba8bd3
commit
dd80ac2530
|
@ -41,7 +41,9 @@ 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.")
|
||||||
if v.id == 1: print(messages[f"{SITE_FULL}/chat"], flush=True)
|
|
||||||
|
if v.id == 1: print(messages[f"{SITE_FULL}/chat"], flush=True)
|
||||||
|
return 'aaaa'
|
||||||
return render_template("chat.html", v=v, messages=messages[f"{SITE_FULL}/chat"])
|
return render_template("chat.html", v=v, messages=messages[f"{SITE_FULL}/chat"])
|
||||||
|
|
||||||
@app.get("/admin/chat")
|
@app.get("/admin/chat")
|
||||||
|
|
Loading…
Reference in New Issue