Skip to content

Commit

Permalink
Client now prints userlist every time user switches the room
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriziel committed Dec 12, 2012
1 parent 4608ea7 commit 4d1aa38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syncplay/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def __init__(self, playerClass, ui, args):
self.protocolFactory = SyncClientFactory(self)
self.ui = UiManager(self, ui)
self.userlist = SyncplayUserlist(self.ui, self)
self._protocol = None
if(args.room == None or args.room == ''):
args.room = 'default'
self.defaultRoom = args.room
Expand All @@ -59,7 +60,6 @@ def __init__(self, playerClass, ui, args):
if(args.password):
args.password = hashlib.md5(args.password).hexdigest()
self._serverPassword = args.password
self._protocol = None
self._player = None
self._playerClass = playerClass
self._startupArgs = args
Expand Down Expand Up @@ -257,6 +257,7 @@ def getUsername(self):

def setRoom(self, roomName):
self.userlist.currentUser.room = roomName
self.getUserList()

def sendRoom(self):
room = self.userlist.currentUser.room
Expand Down

0 comments on commit 4d1aa38

Please sign in to comment.