From 2760d30c1b9cb8d68c0bdaf1449d3b17eed87ac0 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 14 Dec 2020 23:03:33 +0100 Subject: [PATCH] Fix weird BECOME_ADMIN code. --- plomrogue/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2