Author: captdeaf@gmail.com
<captdeaf@gmail.com@
ba372814-4f39-11de-9ad6-
1127a62b9fcd>
Date: Wed Nov 25 00:39:23 2009 +0000
lsearch() now reports invalid syntax. Discovered while investigating
143.
Fixes #151
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];