From a5c14aa7d9242811710845d86dda9f2b019a9d79 Mon Sep 17 00:00:00 2001 From: Etoh Date: Sat, 16 Feb 2019 19:06:49 +0000 Subject: [PATCH] Fix bug which meant --max-chat-message-length was ignored (#224) --- syncplay/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/server.py b/syncplay/server.py index d62d8d5..2a93cba 100755 --- a/syncplay/server.py +++ b/syncplay/server.py @@ -169,7 +169,7 @@ class SyncFactory(Factory): self._roomManager.broadcastRoom(watcher, lambda w: w.sendControlledRoomAuthStatus(False, watcher.getName(), room._name)) def sendChat(self, watcher, message): - message = truncateText(message, constants.MAX_CHAT_MESSAGE_LENGTH) + message = truncateText(message, self.maxChatMessageLength) messageDict = {"message": message, "username": watcher.getName()} self._roomManager.broadcastRoom(watcher, lambda w: w.sendChatMessage(messageDict))