Fixed an issue with the locks not getting properly set on rooms.

This commit is contained in:
Griatch 2011-09-20 13:44:26 +02:00
parent c3a4063cc3
commit ecf11b38cd
2 changed files with 1 additions and 8 deletions

View file

@ -268,10 +268,6 @@ class CmdGet(MuxCommand):
if caller == obj:
caller.msg("You can't get yourself.")
return
if obj.player or obj.destination:
# don't allow picking up player objects, nor exits.
caller.msg("You can't get that.")
return
if obj.location == caller:
caller.msg("You already hold that.")
return

View file

@ -433,10 +433,7 @@ class Room(Object):
"""
super(Room, self).basetype_setup()
self.locks.add("puppet:false()") # would be weird to puppet a room ...
self.locks.add("get:false()")
super(Room, self).basetype_setup()
self.locks.add("get:false();puppet:false()") # would be weird to puppet a room ...
self.location = None