mirror of
https://github.com/evennia/evennia.git
synced 2026-03-19 22:36:31 +01:00
Don't return attribute matches if said attribute is in the hidden attribute list.
This commit is contained in:
parent
39b640e948
commit
f9f24f6616
1 changed files with 1 additions and 1 deletions
|
|
@ -429,7 +429,7 @@ class Object(models.Model):
|
|||
# wild-carded search string.
|
||||
match_exp = re.compile(functions_general.wildcard_to_regexp(searchstr), re.IGNORECASE)
|
||||
# If the regular expression search returns a match object, add to results.
|
||||
return [attr for attr in attrs if match_exp.search(attr.name)]
|
||||
return [attr for attr in attrs if match_exp.search(attr.name) and attr.name not in defines_global.HIDDEN_ATTRIBS]
|
||||
|
||||
def has_flag(self, flag):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue