mod_*: Fix a load of global accesses

This commit is contained in:
Matthew Wild 2009-04-22 21:32:23 +01:00
parent a54da72215
commit ca9a9eb85e
10 changed files with 38 additions and 22 deletions

View file

@ -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