aboutsummaryrefslogtreecommitdiffstats
path: root/core/presencemanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-02-11 18:09:41 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-02-11 18:09:41 +0500
commit2f24ab95fe28c13d85faf1dbfa16b0c3a90b46b1 (patch)
tree999813a47346e5f4a683971e4a048dff13e1a5e8 /core/presencemanager.lua
parentc11c83d1b4762c251fdf69d3cbd9ed025f0073fd (diff)
downloadprosody-2f24ab95fe28c13d85faf1dbfa16b0c3a90b46b1.tar.gz
prosody-2f24ab95fe28c13d85faf1dbfa16b0c3a90b46b1.zip
Fixed directed presence handling to work correctly for components
Diffstat (limited to 'core/presencemanager.lua')
-rw-r--r--core/presencemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/presencemanager.lua b/core/presencemanager.lua
index 3a216d7c..8fdf3612 100644
--- a/core/presencemanager.lua
+++ b/core/presencemanager.lua
@@ -97,7 +97,7 @@ function handle_normal_presence(origin, stanza, core_route_stanza)
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