Mercurial > psgxs
changeset 3:80e607c0b39e
Make affiliation notifications working.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 28 Jun 2010 23:47:28 +0200 |
parents | d3ae2f8b685d |
children | 4c93e76fa371 |
files | psgxs.js |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/psgxs.js +++ b/psgxs.js @@ -960,12 +960,8 @@ function sendNotifs(notifs, type, nodeID else if (i == 'jid') args.jid = attr; } - if (!args.jid || args.jid == '') { - _('Error #2', 41) - return; - } - var affiliation = xmpp.stanza('affiliation', ); - var affiliations = xmpp.stanza('affiliations', {node: nodeID}); + var affiliations = xmpp.stanza('affiliations', {node: nodeID}) + .c('affiliation', {args}); ev.cx(affiliations); } else if (type == 'collection') { var collection = xmpp.stanza('collection', {node: nodeID});