Requires control ability of an object to add @function's off of it now
authornveid <nveid@cobramush.org>
Mon, 9 Apr 2007 06:07:28 +0000 (06:07 +0000)
committerAri Johnson <ari@theari.com>
Thu, 24 Mar 2011 15:58:45 +0000 (15:58 +0000)
(cherry picked from commit 1976212f3cb115378d184fe04919aa06f2c179a5)

game/txt/changes/0.73
src/function.c

index 7ce81afb316f9df325cc3d506dc517a9fb1c17ff..e12463843b7f50ccd276356ba596bc32d83799f7 100644 (file)
@@ -6,6 +6,8 @@ CobraMUSH Version 0.73
 
  Minor:
    * Improved how power bitfields are stored. [RLB]
+   * Adding Global functions now requires the executor have
+     controlling ability over the object the function is on. [RLB]
  Flags:
    * LEAVE_BEHIND - When a player leaves the location of 
      someone they're flowing with this flag it unfollows
index 9a20512299af0f636a13a29928a7ce8a0f9d0b13..f0e86c6b79b506eb18e804655911cb9340693ac9 100644 (file)
@@ -1191,12 +1191,12 @@ do_function(dbref player, char *name, char *argv[], int preserve)
     return;
   }
   /* find the object. For some measure of security, the player must
-   * be able to examine it.
+   * be able to controls it.
    */
   if ((thing = noisy_match_result(player, argv[1], NOTYPE, MAT_EVERYTHING))
       == NOTHING)
     return;
-  if (!Can_Examine(player, thing)) {
+  if(controls(player, thing)) {
     notify(player, T("No permission to examine object."));
     return;
   }