comparison modules/mod_retrieve.js @ 39:4c808bfe0658

Various little fixes.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 15 Dec 2010 22:22:14 +0100
parents 45d0cd9388ea
children bc717575e66a
comparison
equal deleted inserted replaced
38:5395a501c991 39:4c808bfe0658
19 19
20 var nodeID = request.getAttribute('node'); 20 var nodeID = request.getAttribute('node');
21 if (nodeID && nodeID != '') { 21 if (nodeID && nodeID != '') {
22 if (!storage.existsNode(nodeID)) 22 if (!storage.existsNode(nodeID))
23 return makeError(response, errors.node_does_not_exist.n); 23 return makeError(response, errors.node_does_not_exist.n);
24 var subs = storage.getSubscription(toBareJID(to), node); 24 var subs = storage.getSubscription(toBareJID(to), nodeID);
25 } else 25 } else
26 var subs = storage.getSubscription(toBareJID(to)); 26 var subs = storage.getSubscription(toBareJID(to));
27 27
28 response.c('pubsub', {xmlns: NS.PUBSUB}); 28 response.c('pubsub', {xmlns: NS.PUBSUB});
29 response.c('subscriptions'); 29 response.c('subscriptions');