Diff

plugins/mod_legacyauth.lua @ 1042:a3d77353c18a

mod_*: Fix a load of global accesses
author Matthew Wild <mwild1@gmail.com>
date Wed, 22 Apr 2009 21:32:23 +0100
parent 896:2c0b9e3c11c3
child 1216:fd8ce71bc72b
line wrap: on
line diff
--- a/plugins/mod_legacyauth.lua	Wed Apr 22 20:52:27 2009 +0100
+++ b/plugins/mod_legacyauth.lua	Wed Apr 22 21:32:23 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