plugins/mod_version.lua

changeset 894
2c0b9e3c11c3
parent 803
5a64649f4b94
child 1312
ad7d144b6796
equal deleted inserted replaced
893:cec476fcc19f 894:2c0b9e3c11c3
1 -- Prosody IM v0.3 1 -- Prosody IM v0.4
2 -- Copyright (C) 2008-2009 Matthew Wild 2 -- Copyright (C) 2008-2009 Matthew Wild
3 -- Copyright (C) 2008-2009 Waqas Hussain 3 -- Copyright (C) 2008-2009 Waqas Hussain
4 -- 4 --
5 -- This project is MIT/X11 licensed. Please see the 5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
33 33
34 module:add_iq_handler({"c2s", "s2sin"}, xmlns_version, function(session, stanza) 34 module:add_iq_handler({"c2s", "s2sin"}, xmlns_version, function(session, stanza)
35 if stanza.attr.type == "get" then 35 if stanza.attr.type == "get" then
36 session.send(st.reply(stanza):query(xmlns_version) 36 session.send(st.reply(stanza):query(xmlns_version)
37 :tag("name"):text("Prosody"):up() 37 :tag("name"):text("Prosody"):up()
38 :tag("version"):text("0.3"):up() 38 :tag("version"):text("0.4"):up()
39 :tag("os"):text(version)); 39 :tag("os"):text(version));
40 end 40 end
41 end); 41 end);

mercurial