Skip to content

Commit

Permalink
Adding a notice lock to hide room contents.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xelaadryth committed Mar 27, 2017
1 parent 66f5229 commit 34b8105
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion evennia/objects/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,8 @@ def return_appearance(self, looker):
return ""
# get and identify all objects
visible = (con for con in self.contents if con != looker and
con.access(looker, "view"))
con.access(looker, "view") and
con.access(looker, "notice", default=True))
exits, users, things = [], [], []
for con in visible:
key = con.get_display_name(looker)
Expand Down

0 comments on commit 34b8105

Please sign in to comment.