Software /
code /
prosody
Diff
plugins/muc/mod_muc.lua @ 7246:80923a1a8fe1
MUC: Don't reply to error stanzas with more error stanzas (thanks woffs)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 07 Mar 2016 10:59:37 +0100 |
parent | 7086:6cc7c9da29ed |
child | 7269:cde4ef90cf3d |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Sun Mar 06 18:52:22 2016 +0100 +++ b/plugins/muc/mod_muc.lua Mon Mar 07 10:59:37 2016 +0100 @@ -255,9 +255,11 @@ -- Watch presence to create rooms if stanza.attr.type == nil and stanza.name == "presence" then room = muclib.new_room(room_jid); - else + elseif stanza.attr.type ~= "error" then origin.send(st.error_reply(stanza, "cancel", "not-allowed")); return true; + else + return; end end return room[method](room, origin, stanza);