Mercurial > prosody-hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 1064:3e945c3938ad | 1065:3806173670f2 |
|---|---|
| 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); |
