aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-06-08 16:26:01 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-06-08 16:26:01 +0500
commit7b1132921dde126f873170c79523212c8813d02a (patch)
tree851e259db87b21365c323af45305e1a37ee154d0 /plugins
parentc49bc6b7102dc672237f8d4579f07bf57e6b9488 (diff)
downloadprosody-7b1132921dde126f873170c79523212c8813d02a.tar.gz
prosody-7b1132921dde126f873170c79523212c8813d02a.zip
mod_announce: Fixed an edge case where non-admins attempting to announce would get two error replies.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_announce.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/mod_announce.lua b/plugins/mod_announce.lua
index 7f08a6e0..d3017f6c 100644
--- a/plugins/mod_announce.lua
+++ b/plugins/mod_announce.lua
@@ -22,7 +22,6 @@ function handle_announcement(data)
if not is_admin(stanza.attr.from) then
-- Not an admin? Not allowed!
module:log("warn", "Non-admin %s tried to send server announcement", tostring(jid.bare(stanza.attr.from)));
- origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
return;
end