From 815f16c00850342bffcf8a3cf40ab416c1ec220f Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 2 Apr 2020 23:05:05 +0100 Subject: [PATCH] Fix AttributeError in `get_player_by_swid` --- houdini/handlers/play/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/play/player.py b/houdini/handlers/play/player.py index 349aa6c..9fc2ea7 100644 --- a/houdini/handlers/play/player.py +++ b/houdini/handlers/play/player.py @@ -175,7 +175,7 @@ async def handle_get_player_by_id(p, penguin_id: int): @handlers.cooldown(1) async def handle_get_player_by_swid(p, penguin_id: int): if penguin_id in p.server.penguins_by_id: - nickname = p.server.penguins_by_id[penguin_id].safe_nick + nickname = p.server.penguins_by_id[penguin_id].safe_name else: nickname = await Penguin.select('nickname').where(Penguin.id == penguin_id).gino.scalar() await p.send_xt('pbs', penguin_id, penguin_id, nickname)