chat: ratelimit chat lol

apparently we haven't done that xdd
master
justcool393 2022-11-29 19:36:09 -06:00
parent c315a2a259
commit c0f1b875d0
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ def chat(v):
@is_not_permabanned
@ratelimit_user("3/second;10/minute")
def speak(data, v):
limiter.check()
if v.is_banned: return '', 403
if TRUESCORE_CHAT_MINIMUM and v.truescore < TRUESCORE_CHAT_MINIMUM and not v.club_allowed: return '', 403