Change modules to use the new add_feature module API method.
[prosody.git] / plugins / mod_legacyauth.lua
index 1f1789a9f0caf7c0c89e65d6b1650d1ff8f0e56f..ca2d9f78e2b6d8d3384f61ebc0e7c00b4db38bcd 100644 (file)
@@ -22,7 +22,7 @@
 local st = require "util.stanza";
 local t_concat = table.concat;
 
-require "core.discomanager".set("legacyauth", "jabber:iq:auth");
+module:add_feature("jabber:iq:auth");
 
 module:add_iq_handler("c2s_unauthed", "jabber:iq:auth", 
                function (session, stanza)