From: Matthew Wild Date: Wed, 26 Nov 2008 15:58:04 +0000 (+0000) Subject: Yes, we don't put these things in here, we put them in here. X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;ds=sidebyside;h=c1cc4c85663f421b794ebdebc61c805c20e6b0d1;p=prosody.git Yes, we don't put these things in here, we put them in here. --- diff --git a/plugins/mod_ping.lua b/plugins/mod_ping.lua new file mode 100644 index 00000000..c13282ff --- /dev/null +++ b/plugins/mod_ping.lua @@ -0,0 +1,11 @@ + +local st = require "util.stanza"; + +require "core.discomanager".set("ping", "urn:xmpp:ping"); + +add_iq_handler({"c2s", "s2sin"}, "urn:xmpp:ping", + function(session, stanza) + if stanza.attr.type == "get" then + session.send(st.reply(stanza)); + end + end); diff --git a/util/mod_ping.lua b/util/mod_ping.lua deleted file mode 100644 index c13282ff..00000000 --- a/util/mod_ping.lua +++ /dev/null @@ -1,11 +0,0 @@ - -local st = require "util.stanza"; - -require "core.discomanager".set("ping", "urn:xmpp:ping"); - -add_iq_handler({"c2s", "s2sin"}, "urn:xmpp:ping", - function(session, stanza) - if stanza.attr.type == "get" then - session.send(st.reply(stanza)); - end - end);