aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_legacyauth.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-22 21:32:23 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-22 21:32:23 +0100
commitca9a9eb85ebb918983c845813c22c0e6d2464aa6 (patch)
tree680b1c655c3a4b97e14f5dd996a303ff28e122cd /plugins/mod_legacyauth.lua
parenta54da72215f3216f3ae28846604bba20e483b831 (diff)
downloadprosody-ca9a9eb85ebb918983c845813c22c0e6d2464aa6.tar.gz
prosody-ca9a9eb85ebb918983c845813c22c0e6d2464aa6.zip
mod_*: Fix a load of global accesses
Diffstat (limited to 'plugins/mod_legacyauth.lua')
-rw-r--r--plugins/mod_legacyauth.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_legacyauth.lua b/plugins/mod_legacyauth.lua
index 648aa01a..fa14f5e7 100644
--- a/plugins/mod_legacyauth.lua
+++ b/plugins/mod_legacyauth.lua
@@ -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