Mercurial > psgxs
diff modules/mod_owner.js @ 35:6697f394301f
Replace util with fdsq to work around a stupid bug.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 10 Nov 2010 01:30:03 +0100 |
parents | 8735fc6f6f53 |
children | bc717575e66a |
line wrap: on
line diff
--- a/modules/mod_owner.js +++ b/modules/mod_owner.js @@ -4,8 +4,8 @@ var forms = require('../forms'); var notifs = require('../notifs'); var errors = require('../errors'); var makeError = errors.makeError; -var utils = require('../util'); -var toBareJID = utils.toBareJID; +var fdsq = require('../fdsq'); +var toBareJID = fdsq.toBareJID; var NS = require('../namespaces'); // SECTION 8.1: Create a Node @@ -24,7 +24,7 @@ exports.create = { if (!nodeID || nodeID == '') { if (!config.enabled('instant-nodes')) return makeError(response, errors.owner.create.instant_nodes_not_supported.n); - nodeID = utils.makeRandomId(); + nodeID = fdsq.makeRandomId(); instant = true; } if (storage.existsNode(nodeID))