Software /
code /
prosody
Diff
core/presencemanager.lua @ 780:4417ab6ccc20
Fixed directed presence handling to work correctly for components
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 11 Feb 2009 18:09:41 +0500 |
parent | 760:90ce865eebd8 |
child | 826:27978a3f2c0c |
line wrap: on
line diff
--- a/core/presencemanager.lua Wed Feb 11 18:07:20 2009 +0500 +++ b/core/presencemanager.lua Wed Feb 11 18:09:41 2009 +0500 @@ -97,7 +97,7 @@ if stanza.attr.type == "unavailable" then origin.presence = nil; if origin.directed then - for _, jid in ipairs(origin.directed) do + for jid in pairs(origin.directed) do stanza.attr.to = jid; core_route_stanza(origin, stanza); end