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

Method _extractHelloArguments

syncplay/protocols.py:493–511  ·  view source on GitHub ↗
(self, hello)

Source from the content-addressed store, hash-verified

491 return self._version
492
493 def _extractHelloArguments(self, hello):
494 roomName = None
495 if "username" in hello:
496 username = hello["username"]
497 username = username.strip()
498 else:
499 username = None
500 serverPassword = hello["password"] if "password" in hello else None
501 room = hello["room"] if "room" in hello else None
502 if room:
503 if "name" in room:
504 roomName = room["name"]
505 roomName = roomName.strip()
506 else:
507 roomName = None
508 version = hello["version"] if "version" in hello else None
509 version = hello["realversion"] if "realversion" in hello else version
510 features = hello["features"] if "features" in hello else None
511 return username, serverPassword, roomName, version, features
512
513 def _checkPassword(self, serverPassword):
514 if self._factory.password:

Callers 1

handleHelloMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected