Preventing bot from calling itself

This commit is contained in:
q
2025-12-15 12:08:22 -05:00
parent 309ae99b51
commit 0bffd1950d

View File

@@ -138,6 +138,10 @@ function sendImage(results, resultIndex, roomId, name, searchCommand, retryCount
Searxng.prototype.handleMessage = function(event, room) {
if (event.getSender() == this.matrixClient.getUserId()) {
return;
}
const messagePieces = event.getContent().body.split(" ");
if (searxngCommands.indexOf(messagePieces[0]?.toLowerCase()) > -1) {