Browse Source

Fix a crash on commands to unauthorized transport

master
Bohdan Horbeshko 3 months ago
parent
commit
68e3581724
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      xmpp/handlers.go

+ 1
- 1
xmpp/handlers.go View File

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


Loading…
Cancel
Save