Minor fixes

This commit is contained in:
Maxim Khomutov 2023-07-16 09:37:38 +03:00
parent 4974d48411
commit 580b836e39
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ class Core:
for client in self.clients:
if not client:
continue
out += f"{client._nick}"
out += f"{client.nick}"
if need_cid:
out += f":{client.cid}"
out += ","

View File

@ -52,8 +52,8 @@ class TCPServer:
# TODO: i18n
await client.kick('Invalid key! Please restart your game.')
return False, client
client._nick = res["username"]
client._roles = res["roles"]
client.nick = res["username"]
client.roles = res["roles"]
client._guest = res["guest"]
# noinspection PyProtectedMember
client._update_logger()