projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6127fd
)
Bugfix: attribute flag mortal_dark now works again
author
Ari Johnson
<ari@startrekkin.net>
Thu, 14 Feb 2008 04:50:39 +0000
(
04:50
+0000)
committer
Ari Johnson
<ari@startrekkin.net>
Thu, 14 Feb 2008 04:50:39 +0000
(
04:50
+0000)
src/attrib.c
patch
|
blob
|
history
diff --git
a/src/attrib.c
b/src/attrib.c
index 317b0093e296b672b870c5e5482821ab50a29d4f..d4e15e1e68191427fd00eceae5836720c0f33417 100644
(file)
--- a/
src/attrib.c
+++ b/
src/attrib.c
@@
-150,6
+150,9
@@
int cannot_write_this_attr_internal(dbref player, ATTR *attr, dbref obj, char sa
if((AL_FLAGS(attr) & AF_PRIVILEGE) && !(Prived(player) || (Inherit_Powers(player) && Prived(Owner(player)))))
return 1;
+ if(AF_Mdark(attr) && !(Admin(player)
+ || (Inherit_Powers(player) && Admin(Owner(player)))))
+ return 1;
if(ns_chk && catchall && !controls(player, AL_CREATOR(catchall)) && AL_WLock(catchall) != TRUE_BOOLEXP &&
!eval_boolexp(player, AL_WLock(catchall), obj, NULL))