From b7d8fbef1c6d6c4d3d5a91cf8a3dfd8d8da67874 Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Wed, 21 Feb 2007 14:28:56 +0000 Subject: [PATCH] lsearch() didn't refund pennies --- src/wiz.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wiz.c b/src/wiz.c index 6a1f674..f0af0d4 100644 --- a/src/wiz.c +++ b/src/wiz.c @@ -1973,11 +1973,14 @@ raw_search(dbref player, const char *owner, int nargs, const char **args, return -1; } - if (fill_search_spec(player, owner, nargs, args, &spec) < 0) + if (fill_search_spec(player, owner, nargs, args, &spec) < 0) { + giveto(player, FIND_COST); return -1; + } if ((spec.owner != ANY_OWNER && spec.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.")); return -1; } -- 2.30.2