diff modules/mod_retrieve.js @ 30:b2faacfefb90

Rewrite of the module manager; fix of some modules; fix of the directory backend.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 04 Nov 2010 17:50:52 +0100
parents b80ab94da447
children 8735fc6f6f53
line wrap: on
line diff
--- a/modules/mod_retrieve.js
+++ b/modules/mod_retrieve.js
@@ -10,7 +10,7 @@ exports.retrieveSubscriptions = {
 	type: 'get',
 	child: 'pubsub',
 	ns: NS.PUBSUB,
-	pschild: 'subscriptions',
+	child2: 'subscriptions',
 	func: function(response, stanza, request) {
 		if (!config.enabled('retrieve-subscriptions'))
 			return makeError(response, errors.subscriptions_retrieval_not_supported.n);
@@ -38,7 +38,7 @@ exports.retrieveAffiliations = {
 	type: 'get',
 	child: 'pubsub',
 	ns: NS.PUBSUB,
-	pschild: 'affiliations',
+	child2: 'affiliations',
 	func: function(response, stanza, request) {
 		if (!config.enabled('retrieve-affiliations'))
 			return makeError(response, errors.affiliations_retrieval_not_supported.n);
@@ -67,7 +67,7 @@ exports.retrieveItems = {
 	type: 'get',
 	child: 'pubsub',
 	ns: NS.PUBSUB,
-	pschild: 'items',
+	child2: 'items',
 	func: function(response, stanza, request) {
 		if (!config.enabled('retrieve-items'))
 			return makeError(response, errors.sub.default_options.node_configuration_not_supported.n);