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); |