diff modules/mod_options.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 6697f394301f
line wrap: on
line diff
--- a/modules/mod_options.js
+++ b/modules/mod_options.js
@@ -7,11 +7,11 @@ var toBareJID = require('../util').toBar
 var NS = require('../namespaces');
 
 // SECTION 6.3.2: Configure Subscription Options (Request)
-exports.configureSub = {
+exports.getConfigureSub = {
 	type: 'get',
 	child: 'pubsub',
 	ns: NS.PUBSUB,
-	pschild: 'options',
+	child2: 'options',
 	func: function(response, stanza, request, to) {
 		if (!config.enabled('subscription-options'))
 			return makeError(response, errors.sub.configure.subscription_options_not_supported.n);
@@ -47,7 +47,7 @@ exports.configureSub = {
 	type: 'set',
 	child: 'pubsub',
 	ns: NS.PUBSUB,
-	pschild: 'options',
+	child2: 'options',
 	func: function(response, stanza, request, to) {
 		if (!config.enabled('subscription-options'))
 			return makeError(response, errors.sub.subscribe.not_supported.n);
@@ -83,7 +83,7 @@ exports.defaultSub = {
 	type: 'get',
 	child: 'pubsub',
 	ns: NS.PUBSUB,
-	pschild: 'default',
+	child2: 'default',
 	func: function(response, stanza, request) {
 		if (!config.enabled('retrieve-default-sub'))
 			return makeError(response, errors.sub.default_options.default_subscription_configuration_retrieval_not_supported.n);