Fix bug which meant --max-chat-message-length was ignored (#224)

This commit is contained in:
Etoh 2019-02-16 19:06:49 +00:00
parent e1af902f7c
commit a5c14aa7d9
1 changed files with 1 additions and 1 deletions

View File

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