This commit is contained in:
Aevann1 2022-03-24 05:04:23 +02:00
parent 5c636d75d2
commit 3ef079fa7d

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)