Merge branch 'master' into room_persistence
This commit is contained in:
commit
527c2a6c48
@ -85,6 +85,7 @@ Enables room persistence. Path is to where a database file should be loaded/crea
|
|||||||
.B \-\-permanent\-rooms-file [directory]
|
.B \-\-permanent\-rooms-file [directory]
|
||||||
Specifies a list of rooms that will still be listed even if their playlist is empty. Path is to where a text file with one room per line. This will require persistent rooms to be enabled.
|
Specifies a list of rooms that will still be listed even if their playlist is empty. Path is to where a text file with one room per line. This will require persistent rooms to be enabled.
|
||||||
|
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B \-\-max\-chat\-message\-length [maxChatMessageLength]
|
.B \-\-max\-chat\-message\-length [maxChatMessageLength]
|
||||||
Maximum number of characters in one chat message (default is 150).
|
Maximum number of characters in one chat message (default is 150).
|
||||||
|
|||||||
@ -465,10 +465,11 @@ class RoomManager(object):
|
|||||||
oldRoom = watcher.getRoom()
|
oldRoom = watcher.getRoom()
|
||||||
if oldRoom:
|
if oldRoom:
|
||||||
oldRoom.removeWatcher(watcher)
|
oldRoom.removeWatcher(watcher)
|
||||||
self._deleteRoomIfEmpty(oldRoom)
|
if self._roomsDir is None or oldRoom.isStale(self._timer):
|
||||||
|
self._deleteRoomIfEmpty(oldRoom)
|
||||||
|
|
||||||
def _getRoom(self, roomName):
|
def _getRoom(self, roomName):
|
||||||
if roomName in self._rooms:
|
if roomName in self._rooms and not self._rooms[roomName].isStale(self._timer):
|
||||||
return self._rooms[roomName]
|
return self._rooms[roomName]
|
||||||
else:
|
else:
|
||||||
if RoomPasswordProvider.isControlledRoom(roomName):
|
if RoomPasswordProvider.isControlledRoom(roomName):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user