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); |