Update CommonClient.py

This commit is contained in:
NewSoupVi
2025-10-08 09:21:57 +02:00
committed by GitHub
parent 4f0a67295e
commit 0e5a0e490c

View File

@@ -856,9 +856,9 @@ async def server_loop(ctx: CommonContext, address: typing.Optional[str] = None)
server_url = urllib.parse.urlparse(address)
if server_url.username:
args.name = urllib.parse.unquote(server_url.username)
ctx.auth = urllib.parse.unquote(server_url.username)
if server_url.password:
args.password = urllib.parse.unquote(server_url.password)
ctx.password = urllib.parse.unquote(server_url.password)
def reconnect_hint() -> str:
return ", type /connect to reconnect" if ctx.server_address else ""