85 if subscription == "both" or subscription == "to" then |
85 if subscription == "both" or subscription == "to" then |
86 probe.attr.to = jid; |
86 probe.attr.to = jid; |
87 core_route_stanza(origin, probe); |
87 core_route_stanza(origin, probe); |
88 end |
88 end |
89 end |
89 end |
|
90 -- TODO resend subscription requests |
90 end |
91 end |
91 origin.presence = stanza; |
92 origin.presence = stanza; |
92 stanza.attr.to = nil; -- reset it |
93 stanza.attr.to = nil; -- reset it |
93 else |
94 else |
94 -- TODO error, bad type |
95 -- TODO error, bad type |