Mercurial > eldonilo > lightstring
diff plugins/vcard.js @ 35:bdfbd58b4835
Fix plugins.
author | Sonny Piers <sonny.piers@gmail.com> |
---|---|
date | Sat, 28 Jan 2012 04:55:29 +0100 |
parents | 1506992c33e2 |
children | e25dfe389dab |
line wrap: on
line diff
--- a/plugins/vcard.js +++ b/plugins/vcard.js @@ -30,9 +30,9 @@ Lightstring.stanza.vcard = { }; //FIXME we should return a proper vcard, not an XMPP one Lightstring.getVcard = function(aConnection, aTo, aCallback) { - aConnection.send(Lightstring.stanza.vcard.get(aTo), function(answer, err){ - if(answer) { - var vcard = answer.querySelector('vCard'); + aConnection.send(Lightstring.stanza.vcard.get(aTo), function(stanza, err){ + if(stanza) { + var vcard = stanza.DOM.querySelector('vCard'); if(vcard) aCallback(vcard); }