From 5c34c92c060b5f881ed9d11ddc195372a26bca1e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 25 Mar 2022 03:50:00 +0200 Subject: [PATCH] fd --- files/routes/chat.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index 4068e9fd9..000379aeb 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -58,11 +58,13 @@ def speak(data, v): "text_censored":censor_slurs(text_html, 'chat') } - broadcast = not v.shadowbanned - emit('speak', data, broadcast=broadcast) + if v.shadowbanned: + emit('speak', data) + else: + emit('speak', data, broadcast=True) + messages.append(data) + messages = messages[-50:] - messages.append(data) - messages = messages[-50:] total += 1 if v.admin_level > 1: