Merge
[prosody.git] / plugins / mod_ping.lua
index 8306078c77c5760cec0c546878c2f1c2fa812354..2cefff6162ebb41666aeb9bddcfc273baea5593e 100644 (file)
@@ -1,7 +1,16 @@
+-- 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.
+--
+
+
 \r
 local st = require "util.stanza";\r
 \r
-require "core.discomanager".set("ping", "urn:xmpp:ping");\r
+module:add_feature("urn:xmpp:ping");\r
 \r
 module:add_iq_handler({"c2s", "s2sin"}, "urn:xmpp:ping",\r
        function(session, stanza)\r