equal
deleted
inserted
replaced
17 local os_time = os.time; |
17 local os_time = os.time; |
18 local nodeprep = require "util.encodings".stringprep.nodeprep; |
18 local nodeprep = require "util.encodings".stringprep.nodeprep; |
19 local jid_bare = require "util.jid".bare; |
19 local jid_bare = require "util.jid".bare; |
20 |
20 |
21 local compat = module:get_option_boolean("registration_compat", true); |
21 local compat = module:get_option_boolean("registration_compat", true); |
22 local allow_registration = module:get_option_boolean("allow_registration", true); |
22 local allow_registration = module:get_option_boolean("allow_registration", false); |
23 |
23 |
24 module:add_feature("jabber:iq:register"); |
24 module:add_feature("jabber:iq:register"); |
25 |
25 |
26 local register_stream_feature = st.stanza("register", {xmlns="http://jabber.org/features/iq-register"}):up(); |
26 local register_stream_feature = st.stanza("register", {xmlns="http://jabber.org/features/iq-register"}):up(); |
27 module:hook("stream-features", function(event) |
27 module:hook("stream-features", function(event) |