Bugfix: @prog could not use attribute trees from parent objects
authorAri Johnson <ari@theari.com>
Wed, 13 Jan 2016 16:02:18 +0000 (11:02 -0500)
committerAri Johnson <ari@theari.com>
Wed, 13 Jan 2016 16:02:18 +0000 (11:02 -0500)
game/txt/changes/0.73p4
src/prog.c

index 2cff2ac761e049669eb4fdaabd136db18d6b748c..b4d1714eac0550bde1fb22a04baf880f5b41b286 100644 (file)
@@ -13,3 +13,4 @@ CobraMUSH Version 0.73p4
   Fixes:
     * Compiler warning when RPMODE_SYS enabled [AEJ]
     * Recently introduced bug in channel connect/disconnect broadcasts [AEJ]
+    * @prog could not use attribute trees from parent objects [AEJ]
index 5c350ef96aedc04ddd3c8bdbd6e92434d9dd9c53..8f185f69fbed609b78f43cbd689484a476d2de21 100644 (file)
@@ -146,7 +146,7 @@ COMMAND(cmd_prog)
     notify(player, "No such attribute.");
     notify(player, s);
     return;
-  } else if (!Can_Write_Attr(player, thing, patr)) {
+  } else if (!Can_Read_Attr(player, thing, patr)) {
     notify(player, "Permission denied.");
     return;
   }
@@ -257,7 +257,7 @@ FUNCTION(fun_prog)
   else if ((patr = atr_get(thing, upcasestr(args[2]))) == NULL) {
     safe_str("#-1 NO SUCH ATTRIB", buff, bp);
     return;
-  } else if (!Can_Write_Attr(executor, thing, patr)) {
+  } else if (!Can_Read_Attr(executor, thing, patr)) {
     safe_str("#-1 PERMISSION DENIED", buff, bp);
     return;
   }