Comparison

plugins/mod_pubsub.lua @ 5483:ed10252ee9c3

Merge 0.9->trunk
author Kim Alvefur <zash@zash.se>
date Wed, 17 Apr 2013 19:11:57 +0200
parent 5481:169772e3d4e0
child 5569:c45997aebaa2
comparison
equal deleted inserted replaced
5480:415e520e4a4c 5483:ed10252ee9c3
191 end 191 end
192 local item = publish:get_child("item"); 192 local item = publish:get_child("item");
193 local id = (item and item.attr.id); 193 local id = (item and item.attr.id);
194 if not id then 194 if not id then
195 id = uuid_generate(); 195 id = uuid_generate();
196 item.attr.id = id; 196 if item then
197 item.attr.id = id;
198 end
197 end 199 end
198 local ok, ret = service:publish(node, stanza.attr.from, id, item); 200 local ok, ret = service:publish(node, stanza.attr.from, id, item);
199 local reply; 201 local reply;
200 if ok then 202 if ok then
201 reply = st.reply(stanza) 203 reply = st.reply(stanza)