Merge with 0.5
[prosody.git] / plugins / mod_private.lua
index dd717d8dc3fadebb889e7e57534d60ee3cdb80bd..098dbba18421439ec5f6679a8f583befa918a8fa 100644 (file)
@@ -1,10 +1,19 @@
+-- Prosody IM
+-- 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"
 
 local jid_split = require "util.jid".split;
 local datamanager = require "util.datamanager"
 
-require "core.discomanager".set("private", "jabber:iq:private");
+module:add_feature("jabber:iq:private");
 
 module:add_iq_handler("c2s", "jabber:iq:private",
        function (session, stanza)