Changeset

5016:964de9997552

mod_admin_blocklist: Fix traceback due to misplaced parenthesis get_jids_with_role() throws an exception when 'host' is nil since Prosody trunk rev 7ca5645f46cd
author Kim Alvefur <zash@zash.se>
date Sat, 27 Aug 2022 15:39:38 +0200
parents 5015:47d9f704d14b
children 5017:96e83b4a93f7
files mod_admin_blocklist/mod_admin_blocklist.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_admin_blocklist/mod_admin_blocklist.lua	Fri Aug 26 11:30:44 2022 +0100
+++ b/mod_admin_blocklist/mod_admin_blocklist.lua	Sat Aug 27 15:39:38 2022 +0200
@@ -17,7 +17,7 @@
 local admins;
 if usermanager.get_jids_with_role then
 	local set = require "util.set";
-	admins = set.new(usermanager.get_jids_with_role("prosody:admin"), module.host);
+	admins = set.new(usermanager.get_jids_with_role("prosody:admin", module.host));
 else -- COMPAT w/pre-0.12
 	admins = module:get_option_inherited_set("admins", {});
 end