Comparison

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
comparison
equal deleted inserted replaced
5302:52fe5df91c65 5304:67a49d47ef39
208 module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq); 208 module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq);
209 209
210 local disco_info; 210 local disco_info;
211 211
212 local feature_map = { 212 local feature_map = {
213 create = { "create-nodes", autocreate_on_publish and "instant-nodes", "item-ids" }; 213 create = { "create-nodes", "instant-nodes", "item-ids" };
214 retract = { "delete-items", "retract-items" }; 214 retract = { "delete-items", "retract-items" };
215 publish = { "publish" }; 215 publish = { "publish", autocreate_on_publish and "auto-create" };
216 get_items = { "retrieve-items" }; 216 get_items = { "retrieve-items" };
217 add_subscription = { "subscribe" }; 217 add_subscription = { "subscribe" };
218 get_subscriptions = { "retrieve-subscriptions" }; 218 get_subscriptions = { "retrieve-subscriptions" };
219 }; 219 };
220 220