aboutsummaryrefslogtreecommitdiffstats
path: root/core/presencemanager.lua
diff options
context:
space:
mode:
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