Comparison

plugins/mod_pubsub.lua @ 4796:04a34287dc12

Merge with Zash
author Matthew Wild <mwild1@gmail.com>
date Sun, 29 Apr 2012 02:09:12 +0100
parent 4795:8a105eb8aeae
child 5014:b2006c1cfa85
comparison
equal deleted inserted replaced
4794:25ce7720555f 4796:04a34287dc12
55 55
56 local data = st.stanza("items", { node = node }); 56 local data = st.stanza("items", { node = node });
57 for _, entry in pairs(results) do 57 for _, entry in pairs(results) do
58 data:add_child(entry); 58 data:add_child(entry);
59 end 59 end
60 local reply;
60 if data then 61 if data then
61 reply = st.reply(stanza) 62 reply = st.reply(stanza)
62 :tag("pubsub", { xmlns = xmlns_pubsub }) 63 :tag("pubsub", { xmlns = xmlns_pubsub })
63 :add_child(data); 64 :add_child(data);
64 else 65 else