mirror of
https://github.com/evennia/evennia.git
synced 2026-04-06 16:44:08 +02:00
Fixed a bug in examine when examining Players.
This commit is contained in:
parent
9abc25c53e
commit
6a1f66d759
1 changed files with 1 additions and 1 deletions
|
|
@ -1673,7 +1673,7 @@ class CmdExamine(ObjManipCommand):
|
|||
|
||||
if not (len(obj.cmdset.all()) == 1 and obj.cmdset.current.key == "Empty"):
|
||||
# list the current cmdsets
|
||||
all_cmdsets = obj.cmdset.all() + (obj.player and obj.player.cmdset.all() or [])
|
||||
all_cmdsets = obj.cmdset.all() + (hasattr(obj, "player") and obj.player.cmdset.all() or [])
|
||||
all_cmdsets.sort(key=lambda x:x.priority, reverse=True)
|
||||
string += headers["cmdset"] % ("\n ".join("%s (prio %s)" % (cmdset.path, cmdset.priority) for cmdset in all_cmdsets))
|
||||
#cmdsetstr = "\n".join([utils.fill(cmdset, indent=2) for cmdset in str(obj.cmdset).split("\n")])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue