Software /
code /
prosody-modules
Diff
mod_admin_notify/mod_admin_notify.lua @ 4274:44e18454e1e0
mod_admin_notify: Fix traceback when no admins listed in config
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 25 Nov 2020 06:44:51 +0000 |
parent | 4238:e97c509fdbe3 |
line wrap: on
line diff
--- a/mod_admin_notify/mod_admin_notify.lua Tue Nov 24 01:52:33 2020 +0100 +++ b/mod_admin_notify/mod_admin_notify.lua Wed Nov 25 06:44:51 2020 +0000 @@ -4,7 +4,7 @@ local st = require "util.stanza"; local roles_store = module:open_store("roles", "map"); -local config_admins = module:get_option_inherited_set("admins") / jid.prep; +local config_admins = module:get_option_inherited_set("admins", {}) / jid.prep; local function append_host(username) return username.."@"..module.host;