Mercurial > psgxs
comparison modules/mod_retrieve.js @ 37:45d0cd9388ea
Fix mod_retrieve.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 10 Nov 2010 18:31:02 +0100 |
parents | 6697f394301f |
children | 4c808bfe0658 |
comparison
equal
deleted
inserted
replaced
36:26eb015a7c40 | 37:45d0cd9388ea |
---|---|
68 exports.retrieveItems = { | 68 exports.retrieveItems = { |
69 type: 'get', | 69 type: 'get', |
70 child: 'pubsub', | 70 child: 'pubsub', |
71 ns: NS.PUBSUB, | 71 ns: NS.PUBSUB, |
72 child2: 'items', | 72 child2: 'items', |
73 func: function(response, stanza, request) { | 73 func: function(response, stanza, request, to) { |
74 if (!config.enabled('retrieve-items')) | 74 if (!config.enabled('retrieve-items')) |
75 return makeError(response, errors.sub.default_options.node_configuration_not_supported.n); | 75 return makeError(response, errors.sub.default_options.node_configuration_not_supported.n); |
76 | 76 |
77 var nodeID = request.getAttribute('node'); | 77 var nodeID = request.getAttribute('node'); |
78 if (!nodeID || nodeID == '') | 78 if (!nodeID || nodeID == '') |