Add the gateway into roster (with roster manager).
This commit is contained in:
parent
231a8acb5f
commit
82c8ed7cfa
|
|
@ -83,6 +83,9 @@ func (g *GatewayInfo) ReceivedXMPP_Presence(presence *xmpp.Presence) {
|
|||
g.Disconnect()
|
||||
}
|
||||
} else {
|
||||
if presence.Type == Type_available {
|
||||
g.addUserIntoRoster(presence.To, "xmpp4steam gateway")
|
||||
}
|
||||
go g.SteamConnect()
|
||||
transfertPresence = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue