From 844eddae4f63b46768aae7daccdb2c51791032ee Mon Sep 17 00:00:00 2001 From: Chteufleur Date: Sat, 23 Apr 2016 16:35:23 +0200 Subject: [PATCH] Send resource also for gateway JID --- gateway/gateway.go | 2 +- gateway/xmpp.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)