mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 16:56:32 +01:00
Merge pull request #2589 from The-Archemist/dev
get_display_name looker default. Resolves #2415
This commit is contained in:
commit
75107d6987
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