From: Rick Bird Date: Fri, 25 Mar 2011 19:09:23 +0000 (-0400) Subject: PennMUSH Incorp. 182p3 Misc Not mentioned by changes file X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=21e4d2e60e7255c994a1851bc9a406a9db67eb15;p=cobramush.git PennMUSH Incorp. 182p3 Misc Not mentioned by changes file -- Make it so ONly god can create NODUMP attributes --- diff --git a/src/attrib.c b/src/attrib.c index 5177d9d..1906b6b 100644 --- a/src/attrib.c +++ b/src/attrib.c @@ -423,6 +423,13 @@ can_create_attr(dbref player, dbref obj, char const *atr_name, int flags) lock_owner = AL_CREATOR(atr); num_new++; } + /* Only GOD can create an AF_NODUMP attribute (used for semaphores) + * or add a leaf to a tree with such an attribute + */ + if ((AL_FLAGS(atr) & AF_NODUMP) && (player != GOD)) { + missing_name[0] = '\0'; + return AE_ERROR; + } if (Cannot_Write_This_Attr(player, atr, obj, 1, ns_chk, lock_owner)) { free_atr_locks(atr); missing_name[0] = '\0';