changeset 32:8735fc6f6f53

Fix two modules.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 05 Nov 2010 12:24:07 +0100
parents 13011b26181c
children 62cbb1c49bc5
files modules/mod_owner.js modules/mod_retrieve.js
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/modules/mod_owner.js
+++ b/modules/mod_owner.js
@@ -4,7 +4,8 @@ var forms = require('../forms');
 var notifs = require('../notifs');
 var errors = require('../errors');
 var makeError = errors.makeError;
-var toBareJID = require('../util').toBareJID;
+var utils = require('../util');
+var toBareJID = utils.toBareJID;
 var NS = require('../namespaces');
 
 // SECTION 8.1: Create a Node
--- a/modules/mod_retrieve.js
+++ b/modules/mod_retrieve.js
@@ -11,7 +11,7 @@ exports.retrieveSubscriptions = {
 	child: 'pubsub',
 	ns: NS.PUBSUB,
 	child2: 'subscriptions',
-	func: function(response, stanza, request) {
+	func: function(response, stanza, request, to) {
 		if (!config.enabled('retrieve-subscriptions'))
 			return makeError(response, errors.subscriptions_retrieval_not_supported.n);
 
@@ -39,7 +39,7 @@ exports.retrieveAffiliations = {
 	child: 'pubsub',
 	ns: NS.PUBSUB,
 	child2: 'affiliations',
-	func: function(response, stanza, request) {
+	func: function(response, stanza, request, to) {
 		if (!config.enabled('retrieve-affiliations'))
 			return makeError(response, errors.affiliations_retrieval_not_supported.n);