This commit is contained in:
q 2023-01-22 16:41:20 -05:00
parent 26fa6cbd0b
commit 9ac80f916d

View File

@ -194,8 +194,7 @@ Searx.prototype.handleMessage = function(event, room) {
return;
}
else if (resultIndex > (results.length - 1)) {
const noticeIndex = resultIndex+1;
matrixClient.sendNotice(room.roomId, "No result found for \""+toSearch+"\" at position "+noticeIndex);
matrixClient.sendNotice(room.roomId, "No result found for \""+toSearch+"\" at position "+(resultIndex+1));
return;
}