From 256bf58362d4bf4e3786b0b879ba86e752ddf258 Mon Sep 17 00:00:00 2001 From: Rick L Bird Date: Thu, 5 May 2011 18:17:57 -0400 Subject: [PATCH] PennMUSH 1.8.3p11 Author: captdeaf@gmail.com Date: Mon Oct 26 16:19:43 2009 +0000 Fixed error reporting for testlock(). Refs #137 --- src/fundb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fundb.c b/src/fundb.c index 6e126ca..f488e7a 100644 --- a/src/fundb.c +++ b/src/fundb.c @@ -1313,6 +1313,11 @@ FUNCTION(fun_testlock) elock = parse_boolexp(executor, args[0], "Search"); + if (elock == TRUE_BOOLEXP) { + safe_str("#-1 INVALID BOOLEXP", buff, bp); + return; + } + if (!GoodObject(victim)) { safe_str("#-1", buff, bp); return; -- 2.30.2