MultiServer: Don't send password required indicator if the password is empty string (user intention is likely no password)

This commit is contained in:
Fabian Dill
2021-10-15 22:08:24 +02:00
parent af6e159644
commit b57306beac

View File

@@ -461,7 +461,7 @@ async def server(websocket, path, ctx: Context):
async def on_client_connected(ctx: Context, client: Client):
await ctx.send_msgs(client, [{
'cmd': 'RoomInfo',
'password': ctx.password is not None,
'password': bool(ctx.password),
'players': [
NetworkPlayer(client.team, client.slot, ctx.name_aliases.get((client.team, client.slot), client.name),
client.name) for client