comparison modules/mod_subscribe.js @ 57:addbf6bbfaa8

Various fixes for the migration to ltx.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 12 Sep 2011 23:45:00 +0200
parents 0d3f18bb1d36
children
comparison
equal deleted inserted replaced
56:99bd1d1ac071 57:addbf6bbfaa8
23 exports.subscribe = { 23 exports.subscribe = {
24 type: 'set', 24 type: 'set',
25 child: 'pubsub', 25 child: 'pubsub',
26 ns: NS.PUBSUB, 26 ns: NS.PUBSUB,
27 child2: 'subscribe', 27 child2: 'subscribe',
28 func: function(response, stanza, request, to) { 28 func: function(response, attrs, request, to) {
29 if (!config.enabled('subscribe')) 29 if (!config.enabled('subscribe'))
30 return makeError(response, errors.sub.subscribe.not_supported.n); 30 return makeError(response, errors.sub.subscribe.not_supported.n);
31 31
32 var nodeID = request.getAttribute('node'); 32 var nodeID = request.getAttribute('node');
33 if (!nodeID || nodeID == '') 33 if (!nodeID || nodeID == '')