Comparison

plugins/mod_register.lua @ 4270:d2d47fde9811

mod_register: Change the default for 'allow_registration' from true to false, most users shouldn't be affected as allow_registration is already explicitly set in the default config file.
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 May 2011 00:23:05 +0100
parent 4269:cd4011af8b4c
child 4398:acc37e221940
comparison
equal deleted inserted replaced
4269:cd4011af8b4c 4270:d2d47fde9811
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)