fixes to chat

master
Aevann 2023-01-22 06:19:18 +02:00
parent 3fe80c4f4d
commit fdd05d36be
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ def speak(data, v):
else:
emit('speak', data, room=request.referrer, broadcast=True)
messages[request.referrer][id] = data
messages[request.referrer] = dict(messages[request.referrer].items()[-500:])
messages[request.referrer] = dict(list(messages[request.referrer].items())[-500:])
if v.admin_level >= PERMS['USER_BAN']:
text = text.lower()