From e11a217c2cb8be9e427a5e21f2e987f9ae330f5b Mon Sep 17 00:00:00 2001 From: Rick Bird Date: Fri, 25 Mar 2011 18:01:35 -0400 Subject: [PATCH] CobraMUSH Adaptation to new PennMUSH Attribute tree code. * this fix allows those who can write special attribute to write them * and allows objects to write their own non-special attributes * regardless. --- src/attrib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/attrib.c b/src/attrib.c index e261366..c506f91 100644 --- a/src/attrib.c +++ b/src/attrib.c @@ -1886,7 +1886,7 @@ do_set_atr(dbref thing, const char *RESTRICT atr, const char *RESTRICT s, was_listener = Listener(thing); res = s ? atr_add(thing, name, s, player, - (flags & 0x02) ? AF_NOPROG : NOTHING) + (flags & 0x02) ? AF_NOPROG : 0) : atr_clr(thing, name, player); switch (res) { case AE_SAFE: @@ -2325,7 +2325,7 @@ can_write_attr_internal(dbref player, dbref obj, ATTR * atr, int safe) *p = '`'; } - return AE_OKAY; + return 1; } -- 2.30.2