plugins/mod_announce.lua

changeset 3198
0badae62de28
parent 2923
b7049746bd29
child 3228
65e5dfcf5a9f
--- 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
 	

mercurial