diff --git a/gateway/gateway.go b/gateway/gateway.go index 875c8a5..78bd2b4 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -6,7 +6,7 @@ import ( const ( SentryDirectory = "sentries/" - resource = "go-xmpp4steam" + resource = "go-xmpp4steam" ) type GatewayInfo struct { diff --git a/gateway/xmpp.go b/gateway/xmpp.go index c8150d6..46b470a 100644 --- a/gateway/xmpp.go +++ b/gateway/xmpp.go @@ -153,9 +153,9 @@ func (g *GatewayInfo) SendXmppPresence(status, tpye, to, from, message, nick str } if from == "" { // TODO add an option to allow message comming directly from the gateway - p.From = XmppJidComponent + p.From = XmppJidComponent + "/" + resource } else { - p.From = from+"/"+resource + p.From = from + "/" + resource } log.Printf("%sSend presence %v", LogXmppInfo, p)