Comparison

plugins/mod_pubsub/mod_pubsub.lua @ 6434:382e03a40dd2

mod_pubsub: Transplant pieces of cdcfd93e2f43 from trunk
author Kim Alvefur <zash@zash.se>
date Sat, 27 Sep 2014 19:53:39 +0200
parent 5970:6a2c3293d4d7
child 6438:b1c40054b59d
comparison
equal deleted inserted replaced
6433:b93402cec1c4 6434:382e03a40dd2
98 local ok, ret = service:get_items(node, stanza.attr.from); 98 local ok, ret = service:get_items(node, stanza.attr.from);
99 if not ok then 99 if not ok then
100 return; 100 return;
101 end 101 end
102 102
103 for id, item in pairs(ret) do 103 for _, id in ipairs(ret) do
104 reply:tag("item", { jid = module.host, name = id }):up(); 104 reply:tag("item", { jid = module.host, name = id }):up();
105 end 105 end
106 event.exists = true; 106 event.exists = true;
107 end); 107 end);
108 108