From 21e4d2e60e7255c994a1851bc9a406a9db67eb15 Mon Sep 17 00:00:00 2001
From: Rick Bird <nveid@bender.theari.com>
Date: Fri, 25 Mar 2011 15:09:23 -0400
Subject: [PATCH] PennMUSH Incorp. 182p3 Misc Not mentioned by changes file --
 Make it so ONly god can create NODUMP attributes

---
 src/attrib.c | 7 +++++++
 1 file changed, 7 insertions(+)

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';
-- 
2.30.2