Fix presence type 'probe' to be manage (issue #27).

This commit is contained in:
Chteufleur 2017-03-14 20:17:11 +01:00
parent 82c8ed7cfa
commit 4f860c3f59
1 changed files with 2 additions and 2 deletions

View File

@ -64,8 +64,8 @@ func mainXMPP() {
jidBareTo := strings.SplitN(v.To, "/", 2)[0]
g := MapGatewayInfo[jidBareFrom]
if g != nil {
if jidBareTo == jid.Domain {
// Forward only if presence is for component, in order to to not spam set presence on Steam
if jidBareTo == jid.Domain || v.Type == gateway.Type_probe {
// Forward only if presence is for component or is type probe, in order not to spam set presence on Steam
logger.Debug.Printf("Presence transferred to %s", jidBareFrom)
go g.ReceivedXMPP_Presence(v)
}