forked from chteufleur/go-xmpp4steam
Send resource also for gateway JID
This commit is contained in:
parent
7368dce789
commit
844eddae4f
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
const (
|
||||
SentryDirectory = "sentries/"
|
||||
resource = "go-xmpp4steam"
|
||||
resource = "go-xmpp4steam"
|
||||
)
|
||||
|
||||
type GatewayInfo struct {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue