re-allow spaces in passwords
This commit is contained in:
parent
ec528b916b
commit
07da1c510b
|
@ -638,9 +638,10 @@ class ServerCommandProcessor(CommandProcessor):
|
||||||
asyncio.create_task(self.ctx.server.ws_server._close())
|
asyncio.create_task(self.ctx.server.ws_server._close())
|
||||||
self.ctx.running = False
|
self.ctx.running = False
|
||||||
|
|
||||||
def _cmd_password(self, new_password: str = ""):
|
def _cmd_password(self, *new_password: str):
|
||||||
"""Set the server password. Leave the password text empty to remove the password"""
|
"""Set the server password. Leave the password text empty to remove the password"""
|
||||||
set_password(self.ctx, new_password if new_password else None)
|
|
||||||
|
set_password(self.ctx, " ".join(new_password) if new_password else None)
|
||||||
|
|
||||||
def _cmd_forfeit(self, player_name: str):
|
def _cmd_forfeit(self, player_name: str):
|
||||||
"""Send out the remaining items from a player's game to their intended recipients"""
|
"""Send out the remaining items from a player's game to their intended recipients"""
|
||||||
|
|
Loading…
Reference in New Issue