changeset 1205:7d2d440e2fa5

mod_muc_limits: Just drop error stanzas instead of bouncing them with more error stanzas
author Kim Alvefur <zash@zash.se>
date Sun, 06 Oct 2013 17:30:21 +0200
parents fc42f8484451
children 04bf76c3e4c6
files mod_muc_limits/mod_muc_limits.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_limits/mod_muc_limits.lua	Sun Sep 29 19:11:29 2013 +0200
+++ b/mod_muc_limits/mod_muc_limits.lua	Sun Oct 06 17:30:21 2013 +0200
@@ -59,6 +59,9 @@
 			t_insert(dropped_jids, from_jid);
 		end
 		dropped_count = dropped_count + 1;
+		if stanza.attr.type == "error" then -- We don't want to bounce errors
+			return true;
+		end
 		local reply = st.error_reply(stanza, "wait", "policy-violation", "The room is currently overactive, please try again later");
 		local body = stanza:get_child_text("body");
 		if body then