Changeset

1312:ad7d144b6796

mod_version: Use version from prosody.version
author Matthew Wild <mwild1@gmail.com>
date Fri, 05 Jun 2009 01:27:41 +0100
parents 1311:fc113027a1d5
children 1313:6c7347696caa
files plugins/mod_version.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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);