From fdd05d36becb7c31a974c9b4135ed0c62ca50f3d Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 22 Jan 2023 06:19:18 +0200 Subject: [PATCH] fixes to chat --- files/routes/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index c884e229e..154beb660 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -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()