# HG changeset patch # User Kim Alvefur # Date 1411862409 -7200 # Node ID f4403c270ea212efa0d4df6765631e54ef0c66ce # Parent 0f4025abbe8f696d1f1e9858da785e5abebbf2ec mod_pep_plus: Add node config form diff -r 0f4025abbe8f -r f4403c270ea2 plugins/mod_pep_plus.lua --- a/plugins/mod_pep_plus.lua Sun Sep 28 01:56:22 2014 +0200 +++ b/plugins/mod_pep_plus.lua Sun Sep 28 02:00:09 2014 +0200 @@ -133,6 +133,7 @@ retract = true; delete = true; get_nodes = true; + configure = true; subscribe = true; unsubscribe = true; @@ -153,6 +154,19 @@ }; }; + 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;