projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mod_ping: Convert from Windows line endings
[prosody.git]
/
plugins
/
mod_version.lua
diff --git
a/plugins/mod_version.lua
b/plugins/mod_version.lua
index e577c6f8e6e0ababa96785b8bab5616c6efc55f7..04a99af33eb30d64026807bd540b51bb51d3f963 100644
(file)
--- a/
plugins/mod_version.lua
+++ b/
plugins/mod_version.lua
@@
-1,4
+1,4
@@
--- Prosody IM v0.
3
+-- Prosody IM v0.
4
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
@@
-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.3"
):up()
+ :tag("version"):text(
prosody.version
):up()
:tag("os"):text(version));
end
end);
:tag("os"):text(version));
end
end);