From: Christian Heller Date: Mon, 14 Dec 2020 22:03:33 +0000 (+0100) Subject: Fix weird BECOME_ADMIN code. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bprefix%7D%7D/foo.html?a=commitdiff_plain;h=2760d30c1b9cb8d68c0bdaf1449d3b17eed87ac0;p=plomrogue2 Fix weird BECOME_ADMIN code. --- diff --git a/plomrogue/commands.py b/plomrogue/commands.py index 5b8bb28..ca5c37c 100644 --- a/plomrogue/commands.py +++ b/plomrogue/commands.py @@ -68,7 +68,7 @@ def cmd_LOGIN(game, nick, connection_id): cmd_LOGIN.argtypes = 'string' def cmd_BECOME_ADMIN(game, password, connection_id): - player = game.thing_types['Player'](game) + player = game.get_player(connection_id) if not player: raise GameError('need to be logged in for this') if password in game.admin_passwords: