diff 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
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/modules/mod_version.js
@@ -0,0 +1,17 @@
+// 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;
+	}
+}