projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b651ef
)
mod_version: Use version from prosody.version
author
Matthew Wild
<mwild1@gmail.com>
Fri, 5 Jun 2009 00:27:41 +0000
(
01:27
+0100)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 5 Jun 2009 00:27:41 +0000
(
01:27
+0100)
plugins/mod_version.lua
patch
|
blob
|
history
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"
@@
-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);