Mercurial > psgxs
diff nodes.js @ 56:99bd1d1ac071
Migration to node-xmpp, done!
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 10 Aug 2011 15:11:22 -0700 |
parents | 023f767662d3 |
children |
line wrap: on
line diff
--- a/nodes.js +++ b/nodes.js @@ -24,7 +24,7 @@ var errors = require('./errors'); var config = require('./configuration'); var service_configuration = config.service_configuration; var Configuration = config.Configuration; -var makeRandomId = require('./fdsq').makeRandomId; +var uuid = require('uuid'); exports.Item = function() { this.content = null; @@ -94,7 +94,7 @@ exports.Node.prototype = { if (this.subscribers[jid]) subid = this.subscribers[jid].subid; else - subid = makeRandomId(); + subid = uuid(); } this.subscribers[jid] = {