view modules/mod_version.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 b80ab94da447
children 023f767662d3
line wrap: on
line source

// XEP-0092: Software Version
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;
	}
}