aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-10-04 16:40:27 +0200
committerKim Alvefur <zash@zash.se>2013-10-04 16:40:27 +0200
commit3fd77923dafc04d26a6b101c46e853ca65e9afae (patch)
tree526d84ef711408b482ad52210129c4fa45ffa031 /plugins/mod_pubsub/mod_pubsub.lua
parent83a82fbd237c3377016d366d4e1b3cf55b06d108 (diff)
downloadprosody-3fd77923dafc04d26a6b101c46e853ca65e9afae.tar.gz
prosody-3fd77923dafc04d26a6b101c46e853ca65e9afae.zip
mod_pubsub, util.pubsub: Keep track of the order of items
Diffstat (limited to 'plugins/mod_pubsub/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua
index 81a66f8b..2868d409 100644
--- a/plugins/mod_pubsub/mod_pubsub.lua
+++ b/plugins/mod_pubsub/mod_pubsub.lua
@@ -103,7 +103,7 @@ module:hook("host-disco-items-node", function (event)
return origin.send(pubsub_error_reply(stanza, ret));
end
- for id, item in pairs(ret) do
+ for _, id in ipairs(ret) do
reply:tag("item", { jid = module.host, name = id }):up();
end
event.exists = true;