forked from MarseyWorld/MarseyWorld
master
parent
f69ecba53c
commit
5c34c92c06
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue