Community Modules


changeset 44e18454e1e0

mod_admin_notify: Fix traceback when no admins listed in config

author
Matthew Wild
date
parents
8bf83e883593
children
bb111148d031
topic
files

1 files changed, 1 insertions(+), 1 deletions(-)

↓ Download patch

--- 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;