Mercurial > eldonilo > lightstring
diff plugins/disco.js @ 72:5dbf93cef55d
Various fixes.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 02 Feb 2012 02:28:18 +0100 |
parents | fdd1ae375067 |
children | 0b8e7ca19f83 |
line wrap: on
line diff
--- a/plugins/disco.js +++ b/plugins/disco.js @@ -83,7 +83,7 @@ }, aError); }, info: function(aTo, aNode, aResult, aError) { - this.send(Lightstring.stanzas.disco.info(aTo, aNode), function(stanza){ + this.send(Lightstring.stanzas.disco.info(aTo, aNode), function(stanza) { var identities = []; var features = []; var fields = {}; @@ -125,8 +125,9 @@ aResult(stanza); }, aError); }, - addFeature: function(feature) { - features.push(feature); + addFeatures: function() { + for (var i = 0; i < arguments.length; i++) + features.push(arguments[i]); } }, init: function() { @@ -167,6 +168,7 @@ "</iq>"; conn.send(res); + return true; }); } };