comparison psgxs.js @ 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
comparison
equal deleted inserted replaced
2:d3ae2f8b685d 3:80e607c0b39e
958 if (i == 'affiliation') 958 if (i == 'affiliation')
959 args.affiliation = attr; 959 args.affiliation = attr;
960 else if (i == 'jid') 960 else if (i == 'jid')
961 args.jid = attr; 961 args.jid = attr;
962 } 962 }
963 if (!args.jid || args.jid == '') { 963 var affiliations = xmpp.stanza('affiliations', {node: nodeID})
964 _('Error #2', 41) 964 .c('affiliation', {args});
965 return;
966 }
967 var affiliation = xmpp.stanza('affiliation', );
968 var affiliations = xmpp.stanza('affiliations', {node: nodeID});
969 ev.cx(affiliations); 965 ev.cx(affiliations);
970 } else if (type == 'collection') { 966 } else if (type == 'collection') {
971 var collection = xmpp.stanza('collection', {node: nodeID}); 967 var collection = xmpp.stanza('collection', {node: nodeID});
972 if (a1 == 'associate') 968 if (a1 == 'associate')
973 collection.cx('associate', {node: nodeID}); 969 collection.cx('associate', {node: nodeID});