mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
Fix AttributeError in get_player_by_swid
This commit is contained in:
parent
9349b5374b
commit
815f16c008
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user