aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep_plus.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-28 02:00:09 +0200
committerKim Alvefur <zash@zash.se>2014-09-28 02:00:09 +0200
commita578c75039fb478ec21e170d8731f04cd8a563aa (patch)
treefd216f000bb61383dcbf91cd287f08905a1301ee /plugins/mod_pep_plus.lua
parentb0190726e5b46b3accb081366c921839b8ee2441 (diff)
downloadprosody-a578c75039fb478ec21e170d8731f04cd8a563aa.tar.gz
prosody-a578c75039fb478ec21e170d8731f04cd8a563aa.zip
mod_pep_plus: Add node config form
Diffstat (limited to 'plugins/mod_pep_plus.lua')
-rw-r--r--plugins/mod_pep_plus.lua14
1 files changed, 14 insertions, 0 deletions
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;