projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00a333c
)
CobraMUSH Adaptation to new PennMUSH Attribute tree code.
author
Rick Bird
<nveid@bender.theari.com>
Fri, 25 Mar 2011 22:01:35 +0000
(18:01 -0400)
committer
Rick Bird
<nveid@bender.theari.com>
Fri, 25 Mar 2011 22:01:35 +0000
(18:01 -0400)
* 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
patch
|
blob
|
history
diff --git
a/src/attrib.c
b/src/attrib.c
index e261366774e5c385f72c61a51bd584ac0d9d0b80..c506f912f64e55405685c7b37e55443744ae2ab4 100644
(file)
--- 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
;
}