home · contact · privacy
Fix weird BECOME_ADMIN code.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 14 Dec 2020 22:03:33 +0000 (23:03 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 14 Dec 2020 22:03:33 +0000 (23:03 +0100)
plomrogue/commands.py

index 5b8bb28293fbff0b5baa5a37a69f6b14fc499e68..ca5c37c60ab635056cfd0bbdd11b662cc87232b7 100644 (file)
@@ -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: