aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_version.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-06-05 01:27:41 +0100
committerMatthew Wild <mwild1@gmail.com>2009-06-05 01:27:41 +0100
commitfa242fdb09bc575469137c206e51da19a5699674 (patch)
tree4cc7a1d31cd6f7f860e13ab0baf022caf6c76a9d /plugins/mod_version.lua
parent6e793bb1ae789c71f97ba0ae779e49669e1ca83c (diff)
downloadprosody-fa242fdb09bc575469137c206e51da19a5699674.tar.gz
prosody-fa242fdb09bc575469137c206e51da19a5699674.zip
mod_version: Use version from prosody.version
Diffstat (limited to 'plugins/mod_version.lua')
-rw-r--r--plugins/mod_version.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_version.lua b/plugins/mod_version.lua
index 2abf534f..04a99af3 100644
--- a/plugins/mod_version.lua
+++ b/plugins/mod_version.lua
@@ -7,7 +7,7 @@
--
-
+local prosody = prosody;
local st = require "util.stanza";
local xmlns_version = "jabber:iq:version"
@@ -35,7 +35,7 @@ module:add_iq_handler({"c2s", "s2sin"}, xmlns_version, function(session, stanza)
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);