Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
1041:07835534d996 | 1042:a3d77353c18a |
---|---|
8 | 8 |
9 | 9 |
10 | 10 |
11 local st = require "util.stanza"; | 11 local st = require "util.stanza"; |
12 local t_concat = table.concat; | 12 local t_concat = table.concat; |
13 | |
14 local sessionmanager = require "core.sessionmanager"; | |
15 local usermanager = require "core.usermanager"; | |
13 | 16 |
14 module:add_feature("jabber:iq:auth"); | 17 module:add_feature("jabber:iq:auth"); |
15 module:add_event_hook("stream-features", function (session, features) | 18 module:add_event_hook("stream-features", function (session, features) |
16 if not session.username then features:tag("auth", {xmlns='http://jabber.org/features/iq-auth'}):up(); end | 19 if not session.username then features:tag("auth", {xmlns='http://jabber.org/features/iq-auth'}):up(); end |
17 end); | 20 end); |