misc.search: make header use query not line
This commit is contained in:
parent
4c78116cea
commit
e90a6819a1
1 changed files with 1 additions and 1 deletions
|
@ -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> "));
|
||||
|
|
Loading…
Reference in a new issue