Fix a crash on commands to unauthorized transport
This commit is contained in:
parent
326b436fc2
commit
68e3581724
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue