Fixed a bug in the lockhandler error handling. Resolves #564.
This commit is contained in:
parent
b5507b0fcb
commit
1b44d9b2ed
4 changed files with 11 additions and 10 deletions
|
|
@ -1563,6 +1563,7 @@ class CmdLock(ObjManipCommand):
|
|||
if not obj.access(caller, 'control'):
|
||||
caller.msg("You are not allowed to do that.")
|
||||
return
|
||||
ok = False
|
||||
try:
|
||||
ok = obj.locks.add(lockdef)
|
||||
except LockException, e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue