Skip to content

Commit

Permalink
Fix bug which meant --max-chat-message-length was ignored (Syncplay#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h authored and albertosottile committed Feb 26, 2019
1 parent 446444a commit a9cbe3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncplay/server.py
Expand Up @@ -184,7 +184,7 @@ def authRoomController(self, watcher, password, roomBaseName=None):
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))

Expand Down

0 comments on commit a9cbe3e

Please sign in to comment.