Rooms may now search their owners
authorAri Johnson <ari@cobramush.org>
Wed, 21 Feb 2007 14:29:48 +0000 (14:29 +0000)
committerAri Johnson <ari@cobramush.org>
Wed, 21 Feb 2007 14:29:48 +0000 (14:29 +0000)
src/wiz.c

index 0eb83219df21e4c1f190103be5c9f3bb78197b4b..4bc93486915ee7ba189f80e34ed67b8ea5138ce8 100644 (file)
--- a/src/wiz.c
+++ b/src/wiz.c
@@ -1978,7 +1978,7 @@ raw_search(dbref player, const char *owner, int nargs, const char **args,
     return -1;
   }
 
-  if ((spec.owner != ANY_OWNER && spec.owner != player
+  if ((spec.owner != ANY_OWNER && spec.owner != Owner(player)
       && !(CanSearch(player, spec.owner) || (spec.type == TYPE_PLAYER)))) {
     giveto(player, FIND_COST);
     notify(player, T("You need a search warrant to do that."));