comparison mod_muc_markers/mod_muc_markers.lua @ 4356:ab2e15d3f1fa

mod_muc_markers: boolean should be used, not string
author JC Brand <jc@opkode.com>
date Mon, 18 Jan 2021 20:01:17 +0100
parents 83f89ffe427b
children 2e33eeafe962
comparison
equal deleted inserted replaced
4355:31afa4f314cc 4356:ab2e15d3f1fa
19 for priority, name in ipairs(marker_order) do 19 for priority, name in ipairs(marker_order) do
20 marker_order[name] = priority; 20 marker_order[name] = priority;
21 end 21 end
22 22
23 local marker_element_name = module:get_option_string("muc_marker_type", "displayed"); 23 local marker_element_name = module:get_option_string("muc_marker_type", "displayed");
24 local marker_summary_on_join = module:get_option_string("muc_marker_summary_on_join", true); 24 local marker_summary_on_join = module:get_option_boolean("muc_marker_summary_on_join", true);
25 local rewrite_id_attribute = module:get_option_boolean("muc_marker_rewrite_id", false); 25 local rewrite_id_attribute = module:get_option_boolean("muc_marker_rewrite_id", false);
26 26
27 assert(marker_order[marker_element_name], "invalid marker name: "..marker_element_name); 27 assert(marker_order[marker_element_name], "invalid marker name: "..marker_element_name);
28 28
29 local marker_element_names = set.new(); 29 local marker_element_names = set.new();