Comparison

plugins/mod_pubsub/pubsub.lib.lua @ 6441:bcb1ea9047d3

mod_pubsub: Add support for requesting default node configuration
author Kim Alvefur <zash@zash.se>
date Sun, 28 Sep 2014 01:55:32 +0200
parent 6438:b1c40054b59d
child 6445:f1ad3923368c
comparison
equal deleted inserted replaced
6440:9619809bf50b 6441:bcb1ea9047d3
269 return origin.send(pubsub_error_reply(stanza, err)); 269 return origin.send(pubsub_error_reply(stanza, err));
270 end 270 end
271 return origin.send(st.reply(stanza)); 271 return origin.send(st.reply(stanza));
272 end 272 end
273 273
274 function handlers.get_default(origin, stanza, default, service)
275 local reply = st.reply(stanza)
276 :tag("pubsub", { xmlns = xmlns_pubsub_owner })
277 :tag("configure", { node = node })
278 :add_child(form:form(service.node_default_config));
279 return origin.send(reply);
280 end
281
274 return _M; 282 return _M;