Zillion: support unicode player names (#1131)

* work on unicode and seed verification

* update zilliandomizer

* fix log message
This commit is contained in:
Doug Hoskisson
2022-10-23 09:18:05 -07:00
committed by GitHub
parent 24105ac249
commit 52726139b4
4 changed files with 64 additions and 26 deletions

View File

@@ -279,6 +279,7 @@ class CommonContext:
self.auth = await self.console_input()
async def send_connect(self, **kwargs: typing.Any) -> None:
""" send `Connect` packet to log in to server """
payload = {
'cmd': 'Connect',
'password': self.password, 'name': self.auth, 'version': Utils.version_tuple,
@@ -294,6 +295,7 @@ class CommonContext:
return await self.input_queue.get()
async def connect(self, address: typing.Optional[str] = None) -> None:
""" disconnect any previous connection, and open new connection to the server """
await self.disconnect()
self.server_task = asyncio.create_task(server_loop(self, address), name="server loop")