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()
|
g.Disconnect()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if presence.Type == Type_available {
|
||||||
|
g.addUserIntoRoster(presence.To, "xmpp4steam gateway")
|
||||||
|
}
|
||||||
go g.SteamConnect()
|
go g.SteamConnect()
|
||||||
transfertPresence = true
|
transfertPresence = true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue