mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 13:07:16 +02:00
Merge branch 'develop' of github.com:evennia/evennia into develop
This commit is contained in:
commit
d890ac10d3
1 changed files with 2 additions and 2 deletions
|
|
@ -309,7 +309,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
|
||||
# main methods
|
||||
|
||||
def get_display_name(self, looker, **kwargs):
|
||||
def get_display_name(self, looker=None, **kwargs):
|
||||
"""
|
||||
Displays the name of the object in a viewer-aware manner.
|
||||
|
||||
|
|
@ -330,7 +330,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
builders.
|
||||
|
||||
"""
|
||||
if self.locks.check_lockstring(looker, "perm(Builder)"):
|
||||
if looker and self.locks.check_lockstring(looker, "perm(Builder)"):
|
||||
return "{}(#{})".format(self.name, self.id)
|
||||
return self.name
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue