Fix edge case with the who command and players with puppets at None locations. Resolves #1050.
This commit is contained in:
parent
dc32300092
commit
e0e8e9453a
1 changed files with 1 additions and 1 deletions
|
|
@ -422,7 +422,7 @@ class CmdWho(COMMAND_DEFAULT_CLASS):
|
|||
delta_conn = time.time() - session.conn_time
|
||||
player = session.get_player()
|
||||
puppet = session.get_puppet()
|
||||
location = puppet.location.key if puppet else "None"
|
||||
location = puppet.location.key if puppet and puppet.location else "None"
|
||||
table.add_row([utils.crop(player.name, width=25),
|
||||
utils.time_format(delta_conn, 0),
|
||||
utils.time_format(delta_cmd, 1),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue