Add the gateway into roster (with roster manager).

This commit is contained in:
Chteufleur 2017-01-15 09:12:12 +01:00
parent 231a8acb5f
commit 82c8ed7cfa
1 changed files with 3 additions and 0 deletions

View File

@ -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
}