diff mod_conversejs/mod_conversejs.lua @ 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 c34f9fd632a6
children e714be00aaad
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;