diff psgxs.js @ 10:44889cfb2f8c

Fix getItem method.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 27 Aug 2010 01:02:56 +0200
parents a6429f48e403
children 0ed3c06c5191
line wrap: on
line diff
--- a/psgxs.js
+++ b/psgxs.js
@@ -318,6 +318,8 @@ function onIq(stanza) {
 						var j = storage.getItem(nodeID, item[i]);
 						if (typeof j == 'number')
 							return makeError(response, j);
+						if (j == errors.success)
+							continue;
 
 						var k = xmpp.stanza('item', {id: item[i]})
 						k.cnode(j);