Software /
code /
prosody-modules
Comparison
mod_admin_notify/mod_admin_notify.lua @ 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 |
parent | 4238:e97c509fdbe3 |
comparison
equal
deleted
inserted
replaced
4273:8bf83e883593 | 4274:44e18454e1e0 |
---|---|
2 local jid = require "util.jid"; | 2 local jid = require "util.jid"; |
3 local set = require "util.set"; | 3 local set = require "util.set"; |
4 local st = require "util.stanza"; | 4 local st = require "util.stanza"; |
5 | 5 |
6 local roles_store = module:open_store("roles", "map"); | 6 local roles_store = module:open_store("roles", "map"); |
7 local config_admins = module:get_option_inherited_set("admins") / jid.prep; | 7 local config_admins = module:get_option_inherited_set("admins", {}) / jid.prep; |
8 | 8 |
9 local function append_host(username) | 9 local function append_host(username) |
10 return username.."@"..module.host; | 10 return username.."@"..module.host; |
11 end | 11 end |
12 | 12 |