aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-05-27 12:05:35 +0200
committerKim Alvefur <zash@zash.se>2019-05-27 12:05:35 +0200
commitb15dfd76732c80913780bd3042bd4a99c50b8d61 (patch)
treee9341b561d3ad638d9b0d01592a9613013c91771 /plugins
parent93eb1dd57fccb90c225cb292f9a7a6f84292811c (diff)
downloadprosody-b15dfd76732c80913780bd3042bd4a99c50b8d61.tar.gz
prosody-b15dfd76732c80913780bd3042bd4a99c50b8d61.zip
mod_announce: Check for admin on current virtualhost instead of global (fixes #1365) (thanks yc)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_announce.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_announce.lua b/plugins/mod_announce.lua
index 14bb9f3d..970a273a 100644
--- a/plugins/mod_announce.lua
+++ b/plugins/mod_announce.lua
@@ -44,7 +44,7 @@ function handle_announcement(event)
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;