aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-27 19:53:39 +0200
committerKim Alvefur <zash@zash.se>2014-09-27 19:53:39 +0200
commit07abf96a6a3b5be33d9c95f8cffdce5ffb4fe362 (patch)
tree09d96eb3fc81a230e14bf45aa1c1067ef126471e /plugins/mod_pubsub/mod_pubsub.lua
parentf8776db280ceaacf9bf1f314e0b2e292090db297 (diff)
downloadprosody-07abf96a6a3b5be33d9c95f8cffdce5ffb4fe362.tar.gz
prosody-07abf96a6a3b5be33d9c95f8cffdce5ffb4fe362.zip
mod_pubsub: Transplant pieces of cdcfd93e2f43 from trunk
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 c6dbe831..33e729af 100644
--- a/plugins/mod_pubsub/mod_pubsub.lua
+++ b/plugins/mod_pubsub/mod_pubsub.lua
@@ -100,7 +100,7 @@ module:hook("host-disco-items-node", function (event)
return;
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;