Comparison

plugins/mod_server_contact_info.lua @ 9428:8e7feec95e8d

mod_server_contact_info: Comment on fallback to using 'admins'
author Kim Alvefur <zash@zash.se>
date Mon, 01 Oct 2018 23:46:10 +0200
parent 9334:a86736e0163c
child 11010:6b27cb706b89
comparison
equal deleted inserted replaced
9427:460f08008521 9428:8e7feec95e8d
17 { name = "sales", var = "sales-addresses", type = "list-multi" }, 17 { name = "sales", var = "sales-addresses", type = "list-multi" },
18 { name = "security", var = "security-addresses", type = "list-multi" }, 18 { name = "security", var = "security-addresses", type = "list-multi" },
19 { name = "support", var = "support-addresses", type = "list-multi" }, 19 { name = "support", var = "support-addresses", type = "list-multi" },
20 }); 20 });
21 21
22 -- JIDs of configured service admins are used as fallback
22 local admins = module:get_option_inherited_set("admins", {}); 23 local admins = module:get_option_inherited_set("admins", {});
23 24
24 local contact_config = module:get_option("contact_info", { 25 local contact_config = module:get_option("contact_info", {
25 admin = array.collect( admins / function(admin) return "xmpp:" .. admin; end); 26 admin = array.collect( admins / function(admin) return "xmpp:" .. admin; end);
26 }); 27 });