# HG changeset patch # User Marco Cirillo # Date 1314739367 0 # Node ID ee28af887507f1f51da1a1bd98c59f2ff1c23166 # Parent 41feaf7fd8ac4f7f46049915406cf3358162d395 mod_register_url: minor fix. diff -r 41feaf7fd8ac -r ee28af887507 mod_register_url/mod_register_url.lua --- a/mod_register_url/mod_register_url.lua Tue Aug 30 13:34:39 2011 -0400 +++ b/mod_register_url/mod_register_url.lua Tue Aug 30 21:22:47 2011 +0000 @@ -7,8 +7,7 @@ function reg_redirect(event) local ip_wl = module:get_option("registration_whitelist") or { "127.0.0.1" }; local url = module:get_option("registration_url"); - local no_wl = module:get_option("no_registration_whitelist") or false; - if type(no_wl) ~= boolean then no_wl = false end + local no_wl = module:get_option_boolean("no_registration_whitelist", false); local test_ip = false; if not no_wl then