Mercurial > psgxs
diff modules/mod_configure.js @ 58:b98e545a94f7 default tip
Always use children instead of tags. Might break something.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 13 Sep 2011 00:54:55 +0200 |
parents | addbf6bbfaa8 |
children |
line wrap: on
line diff
--- a/modules/mod_configure.js +++ b/modules/mod_configure.js @@ -130,7 +130,7 @@ exports.setConfigure2 = { if (!config.enabled('config-node')) return makeError(response, errors.owner.configure.node_configuration_not_supported.n); - var nodeID = stanza.tags[0].tags[0].getAttribute('node'); + var nodeID = stanza.children[0].children[0].getAttribute('node'); if (!nodeID) return makeError(response, errors.nodeid_required.n); if (!storage.existsNode(nodeID))