Resolve bug when trying to examine self when unprivileged
This commit is contained in:
parent
40eb691cd4
commit
c153a1d7e4
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):
|
if target and not is_iter(target):
|
||||||
# single target - just show it
|
# 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:
|
else:
|
||||||
# list of targets - make list to disconnect from db
|
# list of targets - make list to disconnect from db
|
||||||
characters = list(tar for tar in target if tar) if target else []
|
characters = list(tar for tar in target if tar) if target else []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue