aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-28 01:46:17 +0200
committerKim Alvefur <zash@zash.se>2014-09-28 01:46:17 +0200
commit952a9b8b8500d67a37c983b93a0c3f00a3e38e95 (patch)
tree69dac4e45fe102a056fa42d48f0bbdc980de1158 /plugins/mod_pubsub/mod_pubsub.lua
parent54252eecb4fb38317f51087c591aa878ad19df71 (diff)
downloadprosody-952a9b8b8500d67a37c983b93a0c3f00a3e38e95.tar.gz
prosody-952a9b8b8500d67a37c983b93a0c3f00a3e38e95.zip
mod_pubsub: Add support for node configuration
Diffstat (limited to 'plugins/mod_pubsub/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua
index 33e729af..1107061e 100644
--- a/plugins/mod_pubsub/mod_pubsub.lua
+++ b/plugins/mod_pubsub/mod_pubsub.lua
@@ -64,6 +64,7 @@ local feature_map = {
get_items = { "retrieve-items" };
add_subscription = { "subscribe" };
get_subscriptions = { "retrieve-subscriptions" };
+ set_configure = { "config-node" };
};
local function add_disco_features_from_service(service)
@@ -195,6 +196,7 @@ function module.load()
retract = true;
delete = true;
get_nodes = true;
+ configure = true;
subscribe = true;
unsubscribe = true;
@@ -215,6 +217,14 @@ function module.load()
};
};
+ node_config_form = require"util.dataforms".new {
+ {
+ type = "hidden";
+ name = "FORM_TYPE";
+ value = "http://jabber.org/protocol/pubsub#node_config";
+ };
+ };
+
autocreate_on_publish = autocreate_on_publish;
autocreate_on_subscribe = autocreate_on_subscribe;