Changeset

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
parents 4273:8bf83e883593
children 4275:bb111148d031
files mod_admin_notify/mod_admin_notify.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;