Comparison

core/presencemanager.lua @ 323:7c9d2cabd245

Second fix for broadcasting presence of available resources to newly approved contact
author Waqas Hussain <waqas20@gmail.com>
date Mon, 17 Nov 2008 11:28:09 +0500
parent 322:d370fea67264
child 324:fb3266478a0d
comparison
equal deleted inserted replaced
322:d370fea67264 323:7c9d2cabd245
22 for k, session in pairs(u.sessions) do 22 for k, session in pairs(u.sessions) do
23 local pres = session.presence; 23 local pres = session.presence;
24 if pres then 24 if pres then
25 pres.attr.to = jid; 25 pres.attr.to = jid;
26 pres.attr.from = session.full_jid; 26 pres.attr.from = session.full_jid;
27 core_route_stanza(recipient_session, pres); 27 core_route_stanza(session, pres);
28 pres.attr.to = nil; 28 pres.attr.to = nil;
29 pres.attr.from = nil; 29 pres.attr.from = nil;
30 count = count + 1; 30 count = count + 1;
31 end 31 end
32 end 32 end