# HG changeset patch # User Matthew Wild # Date 1538045707 -3600 # Node ID 4fdd8b77da5401b0442b87687d7605aa4359b640 # Parent d98341bca458b44a30e9f43899f4a944006807c4 mod_conversejs: Variable rename for clarity (user may override options) diff -r d98341bca458 -r 4fdd8b77da54 mod_conversejs/mod_conversejs.lua --- a/mod_conversejs/mod_conversejs.lua Thu Sep 27 11:54:39 2018 +0100 +++ b/mod_conversejs/mod_conversejs.lua Thu Sep 27 11:55:07 2018 +0100 @@ -52,7 +52,7 @@ js_template = "converse.initialize(%s);"; -local more_options = module:get_option("conversejs_options"); +local user_options = module:get_option("conversejs_options"); local function get_converse_options() local allow_registration = module:get_option_boolean("allow_registration", false); @@ -67,8 +67,8 @@ registration_domain = allow_registration and module.host or nil; }; - if type(more_options) == "table" then - for k,v in pairs(more_options) do + if type(user_options) == "table" then + for k,v in pairs(user_options) do converse_options[k] = v; end end