mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 04:07:07 +00:00
Fix a crash on commands to unauthorized transport
This commit is contained in:
parent
326b436fc2
commit
68e3581724
1 changed files with 1 additions and 1 deletions
|
|
@ -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