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: