mod_watch_spam_reports: Fix traceback due to misplaced parenthesis (thanks Menel)
authorKim Alvefur <zash@zash.se>
Sun, 28 Aug 2022 15:50:39 +0200
changeset 5026 97d34d520cfa
parent 5025 f62b091b1c81
child 5027 90772a9c92a0
mod_watch_spam_reports: Fix traceback due to misplaced parenthesis (thanks Menel) Just like in 964de9997552
mod_watch_spam_reports/mod_watch_spam_reports.lua
--- a/mod_watch_spam_reports/mod_watch_spam_reports.lua	Sun Aug 28 11:25:21 2022 +0100
+++ b/mod_watch_spam_reports/mod_watch_spam_reports.lua	Sun Aug 28 15:50:39 2022 +0200
@@ -6,7 +6,7 @@
 
 local admins;
 if usermanager.get_jids_with_role then
-	admins = set.new(usermanager.get_jids_with_role("prosody:admin"), host);
+	admins = set.new(usermanager.get_jids_with_role("prosody:admin", host));
 else -- COMPAT w/pre-0.12
 	admins = module:get_option_inherited_set("admins");
 end