From 295a82cc04ceb0e50399c4875bb44975cb493d8d Mon Sep 17 00:00:00 2001 From: Griatch Date: Wed, 16 Mar 2011 07:16:32 +0000 Subject: [PATCH] @locks command bug fixed; Had forgotten a 'not' in the lock-check, reversing the result. --- src/commands/default/building.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/default/building.py b/src/commands/default/building.py index f56797e02f..15d8beb003 100644 --- a/src/commands/default/building.py +++ b/src/commands/default/building.py @@ -1299,7 +1299,7 @@ class CmdLock(ObjManipCommand): if lockdef: string = lockdef[2] if 'del' in self.switches: - if obj.access(caller, 'edit'): + if not obj.access(caller, 'edit'): caller.msg("You are not allowed to do that.") return obj.locks.delete(access_type) @@ -1315,7 +1315,7 @@ class CmdLock(ObjManipCommand): obj = caller.search(objname) if not obj: return - if obj.access(caller, 'edit'): + if not obj.access(caller, 'edit'): caller.msg("You are not allowed to do that.") return ok = obj.locks.add(lockdef, caller)