From: nveid Date: Tue, 10 Apr 2007 17:40:00 +0000 (+0000) Subject: @function fix - no one could add global @funs since behavior was changed, function... X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=6971ac68459810e6a6b574e4b42b5ca500fada0c;p=cobramush.git @function fix - no one could add global @funs since behavior was changed, function was fixed to work right again. :) (cherry picked from commit 8b9a9685f08311d89f4706b71fbb4d3324db09c6) --- diff --git a/src/function.c b/src/function.c index 72aa380..32d7652 100644 --- a/src/function.c +++ b/src/function.c @@ -1197,8 +1197,8 @@ do_function(dbref player, char *name, char *argv[], int preserve) if ((thing = noisy_match_result(player, argv[1], NOTYPE, MAT_EVERYTHING)) == NOTHING) return; - if(controls(player, thing)) { - notify(player, T("No permission to examine object.")); + if(!controls(player, thing)) { + notify(player, T("Permission denied.")); return; } /* we don't need to check if the attribute exists. If it doesn't,