mirror of https://github.com/Syncplay/syncplay
Fix bug which meant --max-chat-message-length was ignored (#224)
This commit is contained in:
parent
e1af902f7c
commit
a5c14aa7d9
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue