mirror of
https://github.com/evennia/evennia.git
synced 2026-03-25 01:06:32 +01:00
Fixed a bug in examine when listing more than one cmdset.
This commit is contained in:
parent
c0302f7cff
commit
030c245b5b
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() + (hasattr(obj, "player") and obj.player.cmdset.all() or [])
|
||||
all_cmdsets = obj.cmdset.all() + (hasattr(obj, "player") and 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