MultiServer: Don't send password required indicator if the password is empty string (user intention is likely no password)
This commit is contained in:
parent
af6e159644
commit
b57306beac
|
@ -461,7 +461,7 @@ async def server(websocket, path, ctx: Context):
|
||||||
async def on_client_connected(ctx: Context, client: Client):
|
async def on_client_connected(ctx: Context, client: Client):
|
||||||
await ctx.send_msgs(client, [{
|
await ctx.send_msgs(client, [{
|
||||||
'cmd': 'RoomInfo',
|
'cmd': 'RoomInfo',
|
||||||
'password': ctx.password is not None,
|
'password': bool(ctx.password),
|
||||||
'players': [
|
'players': [
|
||||||
NetworkPlayer(client.team, client.slot, ctx.name_aliases.get((client.team, client.slot), client.name),
|
NetworkPlayer(client.team, client.slot, ctx.name_aliases.get((client.team, client.slot), client.name),
|
||||||
client.name) for client
|
client.name) for client
|
||||||
|
|
Loading…
Reference in New Issue