Mercurial > psgxs
view modules/mod_version.js @ 30:b2faacfefb90
Rewrite of the module manager; fix of some modules; fix of the directory backend.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 04 Nov 2010 17:50:52 +0100 |
parents | b80ab94da447 |
children | bc717575e66a |
line wrap: on
line source
// XEP-0092: Software Version var config = require('../configuration'); var NS = require('../namespaces'); exports.version = { type: 'get', child: 'query', ns: NS.VERSION, func: function(response) { response.c('query', {xmlns: NS.VERSION}) .s('name').t('PSĜS') .s('version').t(config.version) .s('os').t(config.os); return response; } }