From d7f07dcd67bd6a2c6dba7d7fdfc6356f871230aa Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 13 Nov 2022 05:37:53 -0600 Subject: [PATCH] chat: allow club users into chat as well --- files/routes/chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index 0ed941abf..024042403 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -39,7 +39,7 @@ user_ids_to_socket_ids = {} @app.get("/chat") @is_not_permabanned def chat(v): - if TRUESCORE_CHAT_LIMIT and v.truescore < TRUESCORE_CHAT_LIMIT: abort(403) + if TRUESCORE_CHAT_LIMIT and v.truescore < TRUESCORE_CHAT_LIMIT and not v.club_allowed: abort(403) return render_template("chat.html", v=v, messages=messages) @@ -49,7 +49,7 @@ def chat(v): @ratelimit_user("3/second;10/minute") def speak(data, v): if v.is_banned: return '', 403 - if TRUESCORE_CHAT_LIMIT and v.truescore < TRUESCORE_CHAT_LIMIT: return '', 403 + if TRUESCORE_CHAT_LIMIT and v.truescore < TRUESCORE_CHAT_LIMIT and not v.club_allowed: return '', 403 vname = v.username.lower() if vname in muted: