Diff

plugins/mod_version.lua @ 1312:ad7d144b6796

mod_version: Use version from prosody.version
author Matthew Wild <mwild1@gmail.com>
date Fri, 05 Jun 2009 01:27:41 +0100
parent 896:2c0b9e3c11c3
child 1523:841d61be198f
line wrap: on
line diff
--- a/plugins/mod_version.lua	Fri Jun 05 01:27:18 2009 +0100
+++ b/plugins/mod_version.lua	Fri Jun 05 01:27:41 2009 +0100
@@ -7,7 +7,7 @@
 --
 
 
-
+local prosody = prosody;
 local st = require "util.stanza";
 
 local xmlns_version = "jabber:iq:version"
@@ -35,7 +35,7 @@
 	if stanza.attr.type == "get" then
 		session.send(st.reply(stanza):query(xmlns_version)
 			:tag("name"):text("Prosody"):up()
-			:tag("version"):text("0.4"):up()
+			:tag("version"):text(prosody.version):up()
 			:tag("os"):text(version));
 	end
 end);