Merge 523dda8e1ddc682dbda7d325e2a727db9ce19412 into aca685ba1823328745d6c2db9b1e6fed067feb6f
This commit is contained in:
commit
659a63e971
@ -217,6 +217,7 @@ class SyncplayClientManager(object):
|
||||
if(room == None or room == ''):
|
||||
room = 'default'
|
||||
self.users.currentUser.room = room
|
||||
self.defaultRoom = room
|
||||
if(password):
|
||||
password = hashlib.md5(password).hexdigest()
|
||||
self.serverPassword = password
|
||||
|
||||
@ -72,7 +72,10 @@ class ConsoleUI(threading.Thread):
|
||||
elif matched_room:
|
||||
room = matched_room.group(2)
|
||||
if room == None:
|
||||
room = self._syncplayClient.users.currentUser.filename
|
||||
if self._syncplayClient.users.currentUser.filename <> None:
|
||||
room = self._syncplayClient.users.currentUser.filename
|
||||
else:
|
||||
room = self._syncplayClient.defaultRoom
|
||||
self._syncplayClient.users.currentUser.room = room
|
||||
self._syncplayClient.checkIfFileMatchesOthers()
|
||||
self._syncplayClient.protocol.sender.send_room(room)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user