Fix negation of boolean conditions in /ds

Previously, something like !ds !recovery didn't work, because the
existence search check assumed that the search cannot be called with
parameter false. However, boolean searches like recovery and priority
do simply use booleans.
This commit is contained in:
Konrad Borowski 2015-09-17 18:49:48 +02:00
parent 4a2ce7127d
commit cd2e470276

View File

@ -532,7 +532,7 @@ var commands = exports.commands = {
for (var cat = 0; cat < categories.length; cat++) {
var search = categories[cat];
if (!searches[search]) continue;
if (!(search in searches)) continue;
switch (search) {
case 'types':
for (var mon in dex) {