core/stanza_router.lua

changeset 137
9a05dfb35dd5
parent 135
bf10d42dd41b
child 138
cb0dd442ca63
equal deleted inserted replaced
136:39dc16f3bf55 137:9a05dfb35dd5
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

mercurial