Fix a crash on commands to unauthorized transport

This commit is contained in:
Bohdan Horbeshko 2023-01-13 03:59:35 -05:00
parent 326b436fc2
commit 68e3581724

View file

@ -93,8 +93,8 @@ func HandleMessage(s xmpp.Sender, p stanza.Packet) {
gateway.SendPresence(component, msg.From, gateway.SPType("subscribed")) gateway.SendPresence(component, msg.From, gateway.SPType("subscribed"))
} else { } else {
log.Error("Message from stranger") log.Error("Message from stranger")
return
} }
return
} }
toID, ok := toToID(msg.To) toID, ok := toToID(msg.To)