Skip to content

Commit b57306b

Browse files
committed
MultiServer: Don't send password required indicator if the password is empty string (user intention is likely no password)
1 parent af6e159 commit b57306b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MultiServer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ async def server(websocket, path, ctx: Context):
461461
async def on_client_connected(ctx: Context, client: Client):
462462
await ctx.send_msgs(client, [{
463463
'cmd': 'RoomInfo',
464-
'password': ctx.password is not None,
464+
'password': bool(ctx.password),
465465
'players': [
466466
NetworkPlayer(client.team, client.slot, ctx.name_aliases.get((client.team, client.slot), client.name),
467467
client.name) for client

0 commit comments

Comments
 (0)