1
0
Fork 0

Send resource also for gateway JID

This commit is contained in:
Chteufleur 2016-04-23 16:35:23 +02:00
parent 7368dce789
commit 844eddae4f
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import (
const ( const (
SentryDirectory = "sentries/" SentryDirectory = "sentries/"
resource = "go-xmpp4steam" resource = "go-xmpp4steam"
) )
type GatewayInfo struct { type GatewayInfo struct {

View File

@ -153,9 +153,9 @@ func (g *GatewayInfo) SendXmppPresence(status, tpye, to, from, message, nick str
} }
if from == "" { if from == "" {
// TODO add an option to allow message comming directly from the gateway // TODO add an option to allow message comming directly from the gateway
p.From = XmppJidComponent p.From = XmppJidComponent + "/" + resource
} else { } else {
p.From = from+"/"+resource p.From = from + "/" + resource
} }
log.Printf("%sSend presence %v", LogXmppInfo, p) log.Printf("%sSend presence %v", LogXmppInfo, p)