projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stanza_router: Call core_post_stanza from core_route_stanza in place of old routing...
[prosody.git]
/
plugins
/
mod_version.lua
diff --git
a/plugins/mod_version.lua
b/plugins/mod_version.lua
index 2abf534f07aa7e848a777f7bcb69690d7a83126f..04a99af33eb30d64026807bd540b51bb51d3f963 100644
(file)
--- 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"
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()
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);
:tag("os"):text(version));
end
end);