Mercurial > prosody-modules
comparison mod_watch_spam_reports/mod_watch_spam_reports.lua @ 5022:97d34d520cfa
mod_watch_spam_reports: Fix traceback due to misplaced parenthesis (thanks Menel)
Just like in 964de9997552
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 28 Aug 2022 15:50:39 +0200 |
parents | 6e5572fc6840 |
children |
comparison
equal
deleted
inserted
replaced
5021:f62b091b1c81 | 5022:97d34d520cfa |
---|---|
4 local usermanager = require "core.usermanager"; | 4 local usermanager = require "core.usermanager"; |
5 local host = module.host; | 5 local host = module.host; |
6 | 6 |
7 local admins; | 7 local admins; |
8 if usermanager.get_jids_with_role then | 8 if usermanager.get_jids_with_role then |
9 admins = set.new(usermanager.get_jids_with_role("prosody:admin"), host); | 9 admins = set.new(usermanager.get_jids_with_role("prosody:admin", host)); |
10 else -- COMPAT w/pre-0.12 | 10 else -- COMPAT w/pre-0.12 |
11 admins = module:get_option_inherited_set("admins"); | 11 admins = module:get_option_inherited_set("admins"); |
12 end | 12 end |
13 | 13 |
14 module:depends("spam_reporting") | 14 module:depends("spam_reporting") |