utils.lookupUser: fix one result returning lookup object

This commit is contained in:
Cynthia Foxwell 2021-07-28 11:49:15 -06:00
parent adf4e57405
commit 1cd8a6052f

View file

@ -284,7 +284,7 @@ async function lookupUser(msg, str, filter) {
if (selection.length == 0) { if (selection.length == 0) {
return "No results"; return "No results";
} else if (selection.length == 1) { } else if (selection.length == 1) {
return selection[0]; return selection[0].value;
} else { } else {
selection.splice(20); selection.splice(20);