Diff

plugins/mod_pubsub.lua @ 5304:67a49d47ef39

mod_pubsub: Advertise autocreate_on_publish correctly.
author Kim Alvefur <zash@zash.se>
date Wed, 23 Jan 2013 22:41:18 +0100
parent 5014:b2006c1cfa85
child 5305:391b72fede9f
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua	Tue Jan 22 08:26:08 2013 +0500
+++ b/plugins/mod_pubsub.lua	Wed Jan 23 22:41:18 2013 +0100
@@ -210,9 +210,9 @@
 local disco_info;
 
 local feature_map = {
-	create = { "create-nodes", autocreate_on_publish and "instant-nodes", "item-ids" };
+	create = { "create-nodes", "instant-nodes", "item-ids" };
 	retract = { "delete-items", "retract-items" };
-	publish = { "publish" };
+	publish = { "publish", autocreate_on_publish and "auto-create" };
 	get_items = { "retrieve-items" };
 	add_subscription = { "subscribe" };
 	get_subscriptions = { "retrieve-subscriptions" };