projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e253e52
)
Players could set the 'internal' attribute flag
author
Ari Johnson
<ari@cobramush.org>
Wed, 21 Feb 2007 01:44:10 +0000
(
01:44
+0000)
committer
Ari Johnson
<ari@cobramush.org>
Wed, 21 Feb 2007 01:44:10 +0000
(
01:44
+0000)
src/attrib.c
patch
|
blob
|
history
diff --git
a/src/attrib.c
b/src/attrib.c
index 287538aab6f42786882bcde546fceb8cb2e4ee2c..8863353cfbc193fe128f0192d61ed6fe762d348c 100644
(file)
--- a/
src/attrib.c
+++ b/
src/attrib.c
@@
-292,6
+292,7
@@
string_to_atrflag(dbref player, char const *p)
return -1;
if (!div_powover(player, player, "Privilege") && (f & AF_PRIVILEGE))
return -1;
+ f &= ~AF_INTERNAL;
return f;
}
@@
-317,6
+318,7
@@
string_to_atrflagsets(dbref player, char const *p, int *setbits, int *clrbits)
return -1;
if (!See_All(player) && ((*setbits & AF_PRIVILEGE) || (*clrbits & AF_PRIVILEGE)))
return -1;
+ f &= ~AF_INTERNAL;
return *setbits;
}