aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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);