From 9ac80f916d6b858a3699cb528e41d4b8704a89f5 Mon Sep 17 00:00:00 2001 From: q Date: Sun, 22 Jan 2023 16:41:20 -0500 Subject: [PATCH] sneed --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 7b395d2..2659a1d 100644 --- a/index.js +++ b/index.js @@ -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; }