From: Ari Johnson Date: Wed, 21 Feb 2007 14:29:48 +0000 (+0000) Subject: Rooms may now search their owners X-Git-Tag: 0.73~131 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=257574bd77f78ec81f9175a3f74e404246f0211d;p=cobramush.git Rooms may now search their owners --- diff --git a/src/wiz.c b/src/wiz.c index 0eb8321..4bc9348 100644 --- 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."));