Mercurial > psgxs
comparison modules/mod_retrieve.js @ 32:8735fc6f6f53
Fix two modules.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 05 Nov 2010 12:24:07 +0100 |
parents | b2faacfefb90 |
children | 6697f394301f |
comparison
equal
deleted
inserted
replaced
31:13011b26181c | 32:8735fc6f6f53 |
---|---|
9 exports.retrieveSubscriptions = { | 9 exports.retrieveSubscriptions = { |
10 type: 'get', | 10 type: 'get', |
11 child: 'pubsub', | 11 child: 'pubsub', |
12 ns: NS.PUBSUB, | 12 ns: NS.PUBSUB, |
13 child2: 'subscriptions', | 13 child2: 'subscriptions', |
14 func: function(response, stanza, request) { | 14 func: function(response, stanza, request, to) { |
15 if (!config.enabled('retrieve-subscriptions')) | 15 if (!config.enabled('retrieve-subscriptions')) |
16 return makeError(response, errors.subscriptions_retrieval_not_supported.n); | 16 return makeError(response, errors.subscriptions_retrieval_not_supported.n); |
17 | 17 |
18 var nodeID = request.getAttribute('node'); | 18 var nodeID = request.getAttribute('node'); |
19 if (nodeID && nodeID != '') { | 19 if (nodeID && nodeID != '') { |
37 exports.retrieveAffiliations = { | 37 exports.retrieveAffiliations = { |
38 type: 'get', | 38 type: 'get', |
39 child: 'pubsub', | 39 child: 'pubsub', |
40 ns: NS.PUBSUB, | 40 ns: NS.PUBSUB, |
41 child2: 'affiliations', | 41 child2: 'affiliations', |
42 func: function(response, stanza, request) { | 42 func: function(response, stanza, request, to) { |
43 if (!config.enabled('retrieve-affiliations')) | 43 if (!config.enabled('retrieve-affiliations')) |
44 return makeError(response, errors.affiliations_retrieval_not_supported.n); | 44 return makeError(response, errors.affiliations_retrieval_not_supported.n); |
45 | 45 |
46 var nodeID = request.getAttribute('node'); | 46 var nodeID = request.getAttribute('node'); |
47 if (nodeID && nodeID != '') { | 47 if (nodeID && nodeID != '') { |