mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 10:37:16 +01:00
Resolve bug when trying to examine self when unprivileged
This commit is contained in:
parent
6f13933406
commit
4cff93e8e1
1 changed files with 4 additions and 1 deletions
|
|
@ -1001,7 +1001,10 @@ class DefaultAccount(with_metaclass(TypeclassBase, AccountDB)):
|
|||
|
||||
if target and not is_iter(target):
|
||||
# single target - just show it
|
||||
return target.return_appearance(self)
|
||||
if hasattr(target, "return_appearance"):
|
||||
return target.return_appearance(self)
|
||||
else:
|
||||
return "{} has no in-game appearance.".format(target)
|
||||
else:
|
||||
# list of targets - make list to disconnect from db
|
||||
characters = list(tar for tar in target if tar) if target else []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue