Change modules to use the new add_feature module API method.
[prosody.git] / plugins / mod_vcard.lua
index 6b8ee23ae0927216a18b405003434ddfe6bf456b..4f78867b9fd40f66fc168e3dc3895a932d54daf2 100644 (file)
@@ -28,7 +28,7 @@ local t_concat, t_insert = table.concat, table.insert;
 require "util.jid"
 local jid_split = jid.split;
 
-require "core.discomanager".set("vcard", "vcard-temp");
+module:add_feature("vcard-temp");
 
 module:add_iq_handler({"c2s", "s2sin"}, "vcard-temp", 
                function (session, stanza)