From 3ef079fa7d7460d8815cfbf5bdf9f8d051f2853c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 24 Mar 2022 05:04:23 +0200 Subject: [PATCH] c --- files/routes/chat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/chat.py b/files/routes/chat.py index 7fc839670..4368a4a6e 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -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)