From: Rick L Bird Date: Fri, 6 May 2011 00:41:31 +0000 (-0400) Subject: PennMUSH 1.8.3p11 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=dca62ace12dc68e629a2393466116154f49c8d6d;p=cobramush.git PennMUSH 1.8.3p11 Author: captdeaf@gmail.com Date: Wed Nov 25 00:39:23 2009 +0000 lsearch() now reports invalid syntax. Discovered while investigating 143. Fixes #151 --- diff --git a/src/wiz.c b/src/wiz.c index 0077df9..c06970b 100644 --- a/src/wiz.c +++ b/src/wiz.c @@ -1749,6 +1749,13 @@ fill_search_spec(dbref player, const char *owner, int nargs, const char **args, return -1; } + /* An odd number of search classes is invalid. */ + if (nargs % 2) { + notify(player, T("Invalid search class+restriction format.")); + return -1; + } + + for (n = 0; n < nargs - 1; n += 2) { class = args[n]; restriction = args[n + 1];