Changeset

3199:0badae62de28

mod_announce: Fixed an edge case where non-admins attempting to announce would get two error replies.
author Waqas Hussain <waqas20@gmail.com>
date Tue, 08 Jun 2010 16:26:01 +0500
parents 3195:f22248192c3e
children 3200:fd2389a240a2
files plugins/mod_announce.lua
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_announce.lua	Thu Jun 03 18:09:02 2010 +0500
+++ b/plugins/mod_announce.lua	Tue Jun 08 16:26:01 2010 +0500
@@ -22,7 +22,6 @@
 	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