From 82c8ed7cfa380eb09f5d3e49194fbd279eecba6b Mon Sep 17 00:00:00 2001 From: Chteufleur Date: Sun, 15 Jan 2017 09:12:12 +0100 Subject: [PATCH] Add the gateway into roster (with roster manager). --- gateway/xmpp.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gateway/xmpp.go b/gateway/xmpp.go index 798a068..623f231 100644 --- a/gateway/xmpp.go +++ b/gateway/xmpp.go @@ -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 }