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";
\r
13 module:add_feature("urn:xmpp:ping");
\r
15 module:add_iq_handler({"c2s", "s2sin"}, "urn:xmpp:ping",
\r
16 function(session, stanza)
\r
17 if stanza.attr.type == "get" then
\r
18 session.send(st.reply(stanza));
\r