cleaner undefined check

This commit is contained in:
q
2025-10-15 13:01:14 -04:00
parent c1242cb7db
commit 78fc183f2e

View File

@@ -120,7 +120,7 @@ Searxng.prototype.handleMessage = function(event, room) {
const messagePieces = event.getContent().body.split(" ");
if (messagePieces[0] != undefined && searxngCommands.indexOf(messagePieces[0].toLowerCase()) > -1) {
if (searxngCommands.indexOf(messagePieces[0]?.toLowerCase()) > -1) {
var cooldown = false;