Bumper commit for the new modulemanager API \o/ Updates all the modules, though some...
[prosody.git] / plugins / mod_ping.lua
1 \r
2 local st = require "util.stanza";\r
3 \r
4 require "core.discomanager".set("ping", "urn:xmpp:ping");\r
5 \r
6 module:add_iq_handler({"c2s", "s2sin"}, "urn:xmpp:ping",\r
7         function(session, stanza)\r
8                 if stanza.attr.type == "get" then\r
9                         session.send(st.reply(stanza));\r
10                 end\r
11         end);\r