# HG changeset patch # User Kim Alvefur # Date 1558951535 -7200 # Node ID 1117138fa37285419354eb6cd9028dea04cab026 # Parent af8c514e5cf78cae0fb70cfd69b6f8136f12ff4c mod_announce: Check for admin on current virtualhost instead of global (fixes #1365) (thanks yc) diff -r af8c514e5cf7 -r 1117138fa372 plugins/mod_announce.lua --- 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;