From: Rick Bird Date: Fri, 25 Mar 2011 22:01:35 +0000 (-0400) Subject: CobraMUSH Adaptation to new PennMUSH Attribute tree code. X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=e11a217c2cb8be9e427a5e21f2e987f9ae330f5b;p=cobramush.git 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. --- 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; }