2 -- Copyright (C) 2008-2009 Matthew Wild
3 -- Copyright (C) 2008-2009 Waqas Hussain
5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information.
11 local st = require "util.stanza";
13 local xmlns_version = "jabber:iq:version"
15 module:add_feature(xmlns_version);
17 module:add_iq_handler({"c2s", "s2sin"}, xmlns_version, function(session, stanza)
18 if stanza.attr.type == "get" then
19 session.send(st.reply(stanza):query(xmlns_version)
20 :tag("name"):text("Prosody"):up()
21 :tag("version"):text("0.3"):up()
22 :tag("os"):text("the best operating system ever!"));