Software /
code /
prosody-modules
Diff
mod_muc_limits/mod_muc_limits.lua @ 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 |
parent | 1058:1255de347dd4 |
child | 1428:091ee76745e8 |
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