Software /
code /
prosody
Diff
plugins/mod_pubsub/mod_pubsub.lua @ 5851:cdcfd93e2f43
mod_pubsub, util.pubsub: Keep track of the order of items
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 04 Oct 2013 16:40:27 +0200 |
parent | 5690:630e7224a65f |
child | 5973:905b4fd863b4 |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Mon Sep 30 23:46:38 2013 +0100 +++ b/plugins/mod_pubsub/mod_pubsub.lua Fri Oct 04 16:40:27 2013 +0200 @@ -103,7 +103,7 @@ 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;