aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-08 00:35:09 +0200
committerKim Alvefur <zash@zash.se>2017-10-08 00:35:09 +0200
commit3ccf9b9891baeccdd74912594b420cbbe79877c5 (patch)
treef11cb7ad1979f78cd05fd8fe34f753703615b8d7 /plugins/mod_pubsub
parent5c1f8cfc4bb5558cff767fbc4b81a10903c91543 (diff)
downloadprosody-3ccf9b9891baeccdd74912594b420cbbe79877c5.tar.gz
prosody-3ccf9b9891baeccdd74912594b420cbbe79877c5.zip
mod_pubsub: Correct traceback in loop invocation (data is the iterator, does not return one)
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index 25a534b6..57055462 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -358,7 +358,7 @@ local function simple_itemstore(archive, config, user, node, expose_publisher)
end
-- Workaround for buggy SQL drivers which require iterating until we get a nil.
local id, payload, when, publisher;
- for a, b, c, d in data() do
+ for a, b, c, d in data do
id, payload, when, publisher = a, b, c, d;
end
module:log("debug", "Get item %s (published at %s by %s) from store %s", id, when, publisher, store);