about summary refs log tree commit diff stats
path: root/apworld
diff options
context:
space:
mode:
Diffstat (limited to 'apworld')
-rw-r--r--apworld/context.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/apworld/context.py b/apworld/context.py index 63645a4..e78ce35 100644 --- a/apworld/context.py +++ b/apworld/context.py
@@ -254,11 +254,8 @@ class Lingo2ClientContext(CommonContext):
254 return ui 254 return ui
255 255
256 async def server_auth(self, password_requested: bool = False): 256 async def server_auth(self, password_requested: bool = False):
257 if password_requested: 257 if password_requested and not self.password:
258 if self.password is None: 258 self.manager.game_ctx.send_connection_refused("Invalid password.")
259 self.manager.game_ctx.send_connection_refused("Slot requires a password.")
260 else:
261 self.manager.game_ctx.send_connection_refused("Invalid password.")
262 else: 259 else:
263 self.auth = self.username 260 self.auth = self.username
264 await self.send_connect() 261 await self.send_connect()