mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge branch 'master' into develop
This commit is contained in:
commit
e6fef4fb69
1 changed files with 5 additions and 1 deletions
|
|
@ -2517,7 +2517,8 @@ class CmdExamine(ObjManipCommand):
|
|||
locks_string = " Default"
|
||||
output["Locks"] = locks_string
|
||||
# cmdsets
|
||||
if not (len(obj.cmdset.all()) == 1 and obj.cmdset.current.key == "_EMPTY_CMDSET"):
|
||||
if current_cmdset and not (
|
||||
len(obj.cmdset.all()) == 1 and obj.cmdset.current.key == "_EMPTY_CMDSET"):
|
||||
# all() returns a 'stack', so make a copy to sort.
|
||||
|
||||
def _format_options(cmdset):
|
||||
|
|
@ -2736,6 +2737,9 @@ class CmdExamine(ObjManipCommand):
|
|||
account = obj.account
|
||||
objct = obj
|
||||
|
||||
# this is usually handled when a command runs, but when we examine
|
||||
# we may have leftover inherited cmdsets directly after a move etc.
|
||||
obj.cmdset.update()
|
||||
# using callback to print results whenever function returns.
|
||||
get_and_merge_cmdsets(
|
||||
obj, session, account, objct, mergemode, self.raw_string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue