misc.search: make header use query not line

This commit is contained in:
Cynthia Foxwell 2023-01-17 20:54:20 -07:00
parent 4c78116cea
commit e90a6819a1
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ search.callback = async function (msg, line, args, {results = 2}) {
.json()
.then((arr) => arr.splice(0, Number(results)));
let out = `__**Results for \`${safeString(line)}\`**__\n`;
let out = `__**Results for \`${safeString(query)}\`**__\n`;
for (const result of searchResults) {
if (result.special_response) {
out += "> " + parseHtmlEntities(result.special_response.response.split("\n").join("\n> "));