Mercurial > prosody-modules
comparison mod_server_contact_info/mod_server_contact_info.lua @ 2702:caabb980d1d8
Merge commit
| author | tmolitor <thilo@eightysoft.de> |
|---|---|
| date | Mon, 24 Apr 2017 20:57:23 +0200 |
| parents | d18a91c030df |
| children | 2c59f2f0c37d |
comparison
equal
deleted
inserted
replaced
| 2701:d96831e46b64 | 2702:caabb980d1d8 |
|---|---|
| 24 local admins = module:get_option_inherited_set("admins", {}); | 24 local admins = module:get_option_inherited_set("admins", {}); |
| 25 if admins:empty() then | 25 if admins:empty() then |
| 26 module:log("error", "No contact_info or admins set in config"); | 26 module:log("error", "No contact_info or admins set in config"); |
| 27 return -- Nothing to attach, so we'll just skip it. | 27 return -- Nothing to attach, so we'll just skip it. |
| 28 end | 28 end |
| 29 module:log("debug", "No contact_info in config, using admins as fallback"); | 29 module:log("info", "No contact_info in config, using admins as fallback"); |
| 30 contact_config = { | 30 contact_config = { |
| 31 admin = array.collect( admins / function(admin) return "xmpp:" .. admin; end); | 31 admin = array.collect( admins / function(admin) return "xmpp:" .. admin; end); |
| 32 }; | 32 }; |
| 33 end | 33 end |
| 34 | 34 |
