changeset 91:c5240333ea4c

pubsub item node
author Sonny Piers <sonny.piers@gmail.com>
date Sat, 17 Mar 2012 01:33:50 +0100
parents c1566c6981e5
children b211a00efa7f
files plugins/disco.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/disco.js
+++ b/plugins/disco.js
@@ -71,7 +71,7 @@
             var item = {
               jid: node.getAttributeNS(null, 'jid'),
               name: node.getAttributeNS(null, 'name'),
-              node: node.getAttributeNS(null, 'node')
+              node: node.getAttributeNS(null, 'node') || ''
             };
             items.push(item);
           }