mod_ping: Convert from Windows line endings
[prosody.git] / plugins / mod_ping.lua
index 8306078c77c5760cec0c546878c2f1c2fa812354..db80f382894cc0e39d56767139f2bda8fbf42b2c 100644 (file)
@@ -1,11 +1,20 @@
-\r
-local st = require "util.stanza";\r
-\r
-require "core.discomanager".set("ping", "urn:xmpp:ping");\r
-\r
-module:add_iq_handler({"c2s", "s2sin"}, "urn:xmpp:ping",\r
-       function(session, stanza)\r
-               if stanza.attr.type == "get" then\r
-                       session.send(st.reply(stanza));\r
-               end\r
-       end);\r
+-- Prosody IM v0.4
+-- Copyright (C) 2008-2009 Matthew Wild
+-- Copyright (C) 2008-2009 Waqas Hussain
+-- 
+-- This project is MIT/X11 licensed. Please see the
+-- COPYING file in the source package for more information.
+--
+
+
+
+local st = require "util.stanza";
+
+module:add_feature("urn:xmpp:ping");
+
+module:add_iq_handler({"c2s", "s2sin"}, "urn:xmpp:ping",
+       function(session, stanza)
+               if stanza.attr.type == "get" then
+                       session.send(st.reply(stanza));
+               end
+       end);