fd
This commit is contained in:
parent
61631675bb
commit
403a4b64a9
1 changed files with 4 additions and 2 deletions
|
@ -41,7 +41,7 @@ def speak(data, v):
|
|||
|
||||
vname = v.username.lower()
|
||||
if vname in muted:
|
||||
if time.time() > muted[vname]: return '', 403
|
||||
if time.time() < muted[vname]: return '', 403
|
||||
else: del muted[vname]
|
||||
|
||||
global messages, total
|
||||
|
@ -58,10 +58,12 @@ def speak(data, v):
|
|||
"text_censored":censor_slurs(text_html, 'chat')
|
||||
}
|
||||
|
||||
broadcast = not v.shadowbanned
|
||||
emit('speak', data, broadcast=broadcast)
|
||||
|
||||
messages.append(data)
|
||||
messages = messages[-50:]
|
||||
total += 1
|
||||
emit('speak', data, broadcast=True)
|
||||
|
||||
if v.admin_level > 1:
|
||||
text = text.lower()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue