From 7b1132921dde126f873170c79523212c8813d02a Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 8 Jun 2010 16:26:01 +0500 Subject: mod_announce: Fixed an edge case where non-admins attempting to announce would get two error replies. --- plugins/mod_announce.lua | 1 - 1 file changed, 1 deletion(-) 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 -- cgit v1.2.3