Fix error when server run without --max-chat-message-length (#177) Part 2

This commit is contained in:
Etoh 2018-02-10 18:06:08 +00:00 committed by albertosottile
parent d7dd563394
commit 9dfd8ea850

View File

@ -27,7 +27,7 @@ class SyncFactory(Factory):
self._motdFilePath = motdFilePath
self.disableReady = disableReady
self.disableChat = disableChat
self.maxChatMessageLength = maxChatMessageLength # if maxChatMessageLength is not None else constants.MAX_CHAT_MESSAGE_LENGTH
self.maxChatMessageLength = maxChatMessageLength if maxChatMessageLength is not None else constants.MAX_CHAT_MESSAGE_LENGTH
if not isolateRooms:
self._roomManager = RoomManager()
else: