Mercurial > psgxs
diff modules.js @ 47:0d3f18bb1d36
Remove usage of fdsq.js in modules.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 10 Mar 2011 16:13:49 +0100 |
parents | 023f767662d3 |
children | 99bd1d1ac071 |
line wrap: on
line diff
--- a/modules.js +++ b/modules.js @@ -27,6 +27,7 @@ var files = fs.readdirSync(dir); var regex = /^mod_.*\.js/; var Script = process.binding('evals').Script; +var fdsq = require('./fdsq'); var sandbox = { process: process, config: require('./configuration'), @@ -38,7 +39,11 @@ var sandbox = { NS: require('./namespaces'), require: require, storage: require('./storage'), - toBareJID: require('./fdsq').toBareJID, + makeRandomId: fdsq.makeRandomId, + JID: { + toBare: fdsq.toBare, + toResource: fdsq.toResource + }, exports: {} };