Mercurial > psgxs
comparison modules/mod_version.js @ 24:b80ab94da447
Add new modules files.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 01 Nov 2010 00:02:27 +0100 |
parents | |
children | bc717575e66a |
comparison
equal
deleted
inserted
replaced
23:5fc4ee90c1bc | 24:b80ab94da447 |
---|---|
1 // XEP-0092: Software Version | |
2 | |
3 var config = require('../configuration'); | |
4 var NS = require('../namespaces'); | |
5 | |
6 exports.version = { | |
7 type: 'get', | |
8 child: 'query', | |
9 ns: NS.VERSION, | |
10 func: function(response) { | |
11 response.c('query', {xmlns: NS.VERSION}) | |
12 .s('name').t('PSĜS') | |
13 .s('version').t(config.version) | |
14 .s('os').t(config.os); | |
15 return response; | |
16 } | |
17 } |