# HG changeset patch # User Kim Alvefur # Date 1677108659 -3600 # Node ID 079ca766193bb7436a85eff000930f15ea4176d6 # Parent 898575a0c6f3f6a494231b962801d256545f18f7 mod_conversejs: This one weird trick updates options on reload Options queried from the config in get_converse_options() would take effect immediately after Prosody reloads the config. Including 'conversejs_options' in this behaviour by simply moving a line seems worth it. diff -r 898575a0c6f3 -r 079ca766193b mod_conversejs/mod_conversejs.lua --- a/mod_conversejs/mod_conversejs.lua Mon Mar 06 10:37:43 2023 +0000 +++ b/mod_conversejs/mod_conversejs.lua Thu Feb 23 00:30:59 2023 +0100 @@ -79,9 +79,9 @@ end end -local user_options = module:get_option("conversejs_options"); +local function get_converse_options() + local user_options = module:get_option("conversejs_options"); -local function get_converse_options() local allow_registration = module:get_option_boolean("allow_registration", false); local converse_options = { -- Auto-detected connection endpoints