clix/export.lua

changeset 60
1537dabc5df8
parent 55
a3f86df6f359
child 164
fafdcde2e2eb
equal deleted inserted replaced
59:46cb6e772e31 60:1537dabc5df8
43 :tag("query", { xmlns = xmlns_private }) 43 :tag("query", { xmlns = xmlns_private })
44 :tag(node[1], { xmlns = node[2] }) 44 :tag(node[1], { xmlns = node[2] })
45 , function(stanza) 45 , function(stanza)
46 conn:debug("got private %s*%s", node[2], node[1]); 46 conn:debug("got private %s*%s", node[2], node[1]);
47 local query = stanza:get_child("query", xmlns_private); 47 local query = stanza:get_child("query", xmlns_private);
48 if query then 48 if query and #query > 0 then
49 export:add_child(query); 49 export:add_child(query);
50 end 50 end
51 out = out - 1; 51 out = out - 1;
52 end); 52 end);
53 end 53 end

mercurial