Mercurial > prosody-hg
diff plugins/mod_legacyauth.lua @ 541:3521e0851c9e
Change modules to use the new add_feature module API method.
This also fixes the bug causing disco features being added to every disco reply for every host.
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Thu, 04 Dec 2008 20:16:30 +0500 |
| parents | cccd610a0ef9 |
| children | 4ae3e81513f3 |
line wrap: on
line diff
--- a/plugins/mod_legacyauth.lua Thu Dec 04 20:07:22 2008 +0500 +++ b/plugins/mod_legacyauth.lua Thu Dec 04 20:16:30 2008 +0500 @@ -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)
