From a578c75039fb478ec21e170d8731f04cd8a563aa Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 28 Sep 2014 02:00:09 +0200 Subject: mod_pep_plus: Add node config form --- plugins/mod_pep_plus.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'plugins') diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua index 351b0e3c..de0f92b2 100644 --- a/plugins/mod_pep_plus.lua +++ b/plugins/mod_pep_plus.lua @@ -133,6 +133,7 @@ function get_pep_service(name) retract = true; delete = true; get_nodes = true; + configure = true; subscribe = true; unsubscribe = true; @@ -153,6 +154,19 @@ function get_pep_service(name) }; }; + node_config_form = require"util.dataforms".new { + { + type = "hidden"; + name = "FORM_TYPE"; + value = "http://jabber.org/protocol/pubsub#node_config"; + }; + { + type = "text-single"; + name = "pubsub#max_items"; + label = "Max # of items to persist"; + }; + }; + autocreate_on_publish = true; autocreate_on_subscribe = true; -- cgit v1.2.3