Players could set the 'internal' attribute flag
authorAri Johnson <ari@cobramush.org>
Wed, 21 Feb 2007 01:44:10 +0000 (01:44 +0000)
committerAri Johnson <ari@cobramush.org>
Wed, 21 Feb 2007 01:44:10 +0000 (01:44 +0000)
src/attrib.c

index 287538aab6f42786882bcde546fceb8cb2e4ee2c..8863353cfbc193fe128f0192d61ed6fe762d348c 100644 (file)
@@ -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;
 }