diff --git a/index.js b/index.js index 8b6215a..5710e20 100644 --- a/index.js +++ b/index.js @@ -228,7 +228,7 @@ Searxng.prototype.handleMessage = function(event, room) { const name = toSearch.trim(); toSearch = encodeURIComponent(toSearch); - const searchURL = this.searxngInstance + "/search?category_images=1&pageno=1&time_range=&format=json"+(this.searxngParameters.length() > 0 ? "&"+this.searxngParameters : "")+"&safesearch="+(messagePieces[0] == unsafeImageSearchCmd ? "0" : "1")+"&q=" + toSearch; + const searchURL = this.searxngInstance + "/search?category_images=1&pageno=1&time_range=&format=json"+(this.searxngParameters.length > 0 ? "&"+this.searxngParameters : "")+"&safesearch="+(messagePieces[0] == unsafeImageSearchCmd ? "0" : "1")+"&q=" + toSearch; this.matrixClient.sendTyping(room.roomId, true, 3000); const matrixClient = this.matrixClient; const uploadMatrixClient = this.uploadMatrixClient;