Mercurial > psgxs
diff modules/mod_options.js @ 41:bc717575e66a
Much better handling of modules.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 20 Feb 2011 15:51:12 +0100 |
parents | 6697f394301f |
children | 023f767662d3 |
line wrap: on
line diff
--- a/modules/mod_options.js +++ b/modules/mod_options.js @@ -1,11 +1,3 @@ -var config = require('../configuration'); -var storage = require('../storage'); -var forms = require('../forms'); -var errors = require('../errors'); -var makeError = errors.makeError; -var toBareJID = require('../fdsq').toBareJID; -var NS = require('../namespaces'); - // SECTION 6.3.2: Configure Subscription Options (Request) exports.getConfigureSub = { type: 'get', @@ -32,8 +24,8 @@ exports.getConfigureSub = { if (!subs.subid) // FIXME: better test for empty object. return makeError(response, errors.sub.configure.no_such_subscriber.n); - response.c('pubsub', {xmlns: NS.PUBSUB}); - response.c('options', {node: nodeID, jid: jid}); + response.c('pubsub', {xmlns: NS.PUBSUB}) + .c('options', {node: nodeID, jid: jid}); var form = forms.build('form', 'subscribe_options', subs.options, true); response.cnode(form);