fix(command): 🐛 add missing return

This commit is contained in:
jay 2020-12-25 07:29:06 +05:00
parent 902732c6dd
commit 5b4718fa5d

View File

@ -440,6 +440,7 @@ function command(username, message) {
} else if (!item) { } else if (!item) {
console.log("don't have:", message_parts[1]) console.log("don't have:", message_parts[1])
cfg.quiet || bot.chat(`don't have item: ${message_parts[1]}`) cfg.quiet || bot.chat(`don't have item: ${message_parts[1]}`)
return false
} }
switch (message_parts.length) { switch (message_parts.length) {
case 2: case 2: