Changeset

3310:908b2bc05d26

mod_conversejs: Restore accidentally removed configuration option handling
author Kim Alvefur <zash@zash.se>
date Sun, 09 Sep 2018 14:43:23 +0200
parents 3309:c34f9fd632a6
children 3311:5b3347056f07
files mod_conversejs/mod_conversejs.lua
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_conversejs/mod_conversejs.lua	Sun Sep 09 14:32:01 2018 +0200
+++ b/mod_conversejs/mod_conversejs.lua	Sun Sep 09 14:43:23 2018 +0200
@@ -59,6 +59,12 @@
 				registration_domain = allow_registration and module.host or nil;
 			};
 
+			if type(more_options) == "table" then
+				for k,v in pairs(more_options) do
+					converse_options[k] = v;
+				end
+			end
+
 			event.response.headers.content_type = "text/html";
 			return template:format(json_encode(converse_options));
 		end;