MCPcopy Create free account
hub / github.com/Syncplay/syncplay / isUserInYourRoom

Method isUserInYourRoom

syncplay/client.py:1603–1607  ·  view source on GitHub ↗
(self, username)

Source from the content-addressed store, hash-verified

1601 return True
1602
1603 def isUserInYourRoom(self, username):
1604 for user in self._users.values():
1605 if user.username == username and user.room == self.currentUser.room:
1606 return True
1607 return False
1608
1609 def canControl(self, username):
1610 if self.currentUser.username == username and self.currentUser.canControl():

Callers 1

removeUserMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected