From: Rick L Bird Date: Thu, 5 May 2011 22:17:57 +0000 (-0400) Subject: PennMUSH 1.8.3p11 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=256bf58362d4bf4e3786b0b879ba86e752ddf258;p=cobramush.git PennMUSH 1.8.3p11 Author: captdeaf@gmail.com Date: Mon Oct 26 16:19:43 2009 +0000 Fixed error reporting for testlock(). Refs #137 --- 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;