Bumper commit for the new modulemanager API \o/ Updates all the modules, though some...
[prosody.git] / plugins / mod_legacyauth.lua
index 02621af732baf7c9222e822716356b484e6fa20b..81e2ff7ffc9649c8f89f560bfdf9ba6339145e0f 100644 (file)
@@ -4,7 +4,7 @@ local t_concat = table.concat;
 
 require "core.discomanager".set("legacyauth", "jabber:iq:auth");
 
-add_iq_handler("c2s_unauthed", "jabber:iq:auth", 
+module:add_iq_handler("c2s_unauthed", "jabber:iq:auth", 
                function (session, stanza)
                        local username = stanza.tags[1]:child_with_name("username");
                        local password = stanza.tags[1]:child_with_name("password");
@@ -43,4 +43,4 @@ add_iq_handler("c2s_unauthed", "jabber:iq:auth",
                                end
                        end
                        
-               end);
\ No newline at end of file
+               end);