From: nveid Date: Mon, 11 Sep 2006 05:59:58 +0000 (+0000) Subject: attribute write lock X-Git-Tag: 0.72p1~4 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=a061df22c86fb5fa123bb730191b7fee856ddb30;p=cobramush.git attribute write lock --- diff --git a/src/attrib.c b/src/attrib.c index a9c06f8..191bc2f 100644 --- a/src/attrib.c +++ b/src/attrib.c @@ -148,6 +148,10 @@ int cannot_write_this_attr_internal(dbref player, ATTR *attr, dbref obj, char sa if(!controls(player, lock_owner) && AL_WLock(attr) != TRUE_BOOLEXP && !eval_boolexp(player, AL_WLock(attr), obj, NULL)) return 1; + /* As well if no lock is set.. and they don't controlt he player in the first place.. then they obviously can't.. */ + if(AL_WLock(attr) == TRUE_BOOLEXP && !controls(player, obj)) + return 1; + return 0; } /*======================================================================*/