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))