master
Aevann1 2022-03-25 03:50:00 +02:00
parent f69ecba53c
commit 5c34c92c06
1 changed files with 6 additions and 4 deletions

View File

@ -58,11 +58,13 @@ def speak(data, v):
"text_censored":censor_slurs(text_html, 'chat') "text_censored":censor_slurs(text_html, 'chat')
} }
broadcast = not v.shadowbanned if v.shadowbanned:
emit('speak', data, broadcast=broadcast) emit('speak', data)
else:
emit('speak', data, broadcast=True)
messages.append(data) messages.append(data)
messages = messages[-50:] messages = messages[-50:]
total += 1 total += 1
if v.admin_level > 1: if v.admin_level > 1: