summaryrefslogtreecommitdiffstats
path: root/Sluift
diff options
context:
space:
mode:
Diffstat (limited to 'Sluift')
-rw-r--r--Sluift/boot.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/Sluift/boot.lua b/Sluift/boot.lua
index b642bfa..e019fe6 100644
--- a/Sluift/boot.lua
+++ b/Sluift/boot.lua
@@ -275,6 +275,8 @@ local simple_pubsub_node_queries = {
get_configuration = 'pubsub_owner_configure',
get_subscriptions = 'pubsub_subscriptions',
get_affiliations = 'pubsub_affiliations',
+ get_owner_subscriptions = 'pubsub_owner_subscriptions',
+ get_owner_affiliations = 'pubsub_owner_affiliations',
get_default_subscription_options = 'pubsub_default',
}
for method, query_type in pairs(simple_pubsub_node_queries) do
@@ -335,6 +337,15 @@ function PubSubNode.set_configuration(node, options)
}, options))
end
+function PubSubNode.set_owner_affiliations(node, ...)
+ local options = parse_options({}, ...)
+ return node.client:query_pubsub(merge_tables({
+ type = 'set', to = node.jid, query = merge_tables({
+ _type = 'pubsub_owner_affiliations', node = node.node,
+ }, options.affiliations)}, options))
+end
+
+
function PubSubNode.subscribe(node, ...)
local options = parse_options(...)
local jid = options.jid or sluift.jid.to_bare(node.client:jid())