From c6fd551563750d001aa74f036f3b8a04c5d3ec01 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 22 Mar 2022 05:11:10 +0200 Subject: [PATCH] fds --- files/routes/chat.py | 1 + files/templates/chat.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index 3d4eaa752..7ae28c989 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -21,6 +21,7 @@ if SITE in ('pcmemes.net', 'localhost'): return render_template("chat.html", v=v) @socketio.on('speak') + @limiter.limit("3/second;30/minute") @auth_required def speak(data, v): diff --git a/files/templates/chat.html b/files/templates/chat.html index 1137c3ec5..afaedd452 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -48,7 +48,7 @@ - +