Aevann1 2022-03-24 05:04:23 +02:00
parent 6842b509ab
commit a20dfd06f9
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ if "load_chat" in sys.argv or SITE == 'localhost':
@limiter.limit("3/second;10/minute")
@auth_required
def speak(data, v):
if v.is_banned: abort(403)
global messages
text = data[:1000].strip()
if not text: abort(403)