# HG changeset patch # User Emmanuel Gil Peyrot # Date 1288956247 -3600 # Node ID 8735fc6f6f531cc5a76e9a4bb43d8d974b179770 # Parent 13011b26181c4842a2cdf75f68cd72fd81c2e0a9 Fix two modules. diff --git a/modules/mod_owner.js b/modules/mod_owner.js --- 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 diff --git a/modules/mod_retrieve.js b/modules/mod_retrieve.js --- 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);