Mercurial > prosody-hg
diff plugins/mod_legacyauth.lua @ 1065:3806173670f2
mod_*: Fix many unnecessary global accesses in modules (already committed to main repo)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 29 Apr 2009 02:08:12 +0100 |
| parents | 2c0b9e3c11c3 |
| children | fd8ce71bc72b |
line wrap: on
line diff
--- a/plugins/mod_legacyauth.lua Wed Apr 29 02:06:05 2009 +0100 +++ b/plugins/mod_legacyauth.lua Wed Apr 29 02:08:12 2009 +0100 @@ -11,6 +11,9 @@ local st = require "util.stanza"; local t_concat = table.concat; +local sessionmanager = require "core.sessionmanager"; +local usermanager = require "core.usermanager"; + module:add_feature("jabber:iq:auth"); module:add_event_hook("stream-features", function (session, features) if not session.username then features:tag("auth", {xmlns='http://jabber.org/features/iq-auth'}):up(); end
