author | Kim Alvefur <zash@zash.se> |
Mon, 27 May 2019 12:05:35 +0200 | |
branch | 0.11 |
changeset 10030 | 1117138fa372 |
parent 10020 | af8c514e5cf7 |
child 10031 | c0ee2ed8ef19 |
child 10032 | 79ba2d709e72 |
--- a/plugins/mod_announce.lua Tue May 21 08:52:21 2019 +0200 +++ b/plugins/mod_announce.lua Mon May 27 12:05:35 2019 +0200 @@ -44,7 +44,7 @@ return; -- Not an announcement end - if not is_admin(stanza.attr.from) then + if not is_admin(stanza.attr.from, host) then -- Not an admin? Not allowed! module:log("warn", "Non-admin '%s' tried to send server announcement", stanza.attr.from); return;