aboutsummaryrefslogtreecommitdiff
path: root/xmpp
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2023-01-13 11:59:35 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2023-01-13 11:59:35 +0300
commit68e3581724f04366c114f267b3264075bc635061 (patch)
tree58ea826088b849ebe46d931df31d0cd855ead5b0 /xmpp
parent326b436fc2f19800b273281cf334ef14a8ad137a (diff)
Fix a crash on commands to unauthorized transport
Diffstat (limited to 'xmpp')
-rw-r--r--xmpp/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index 7c671d9..d5653ce 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -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)