Mercurial > prosody-modules
changeset 3332:4fdd8b77da54
mod_conversejs: Variable rename for clarity (user may override options)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 27 Sep 2018 11:55:07 +0100 |
parents | d98341bca458 |
children | 5be90562e14b |
files | mod_conversejs/mod_conversejs.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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