From 8e852d367ef16f7142cb605af07e533796e52ef0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 7 Mar 2016 10:59:37 +0100 Subject: MUC: Don't reply to error stanzas with more error stanzas (thanks woffs) --- plugins/muc/mod_muc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 4f5831a6..74909d9b 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -255,9 +255,11 @@ for event_name, method in pairs { -- 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); -- cgit v1.2.3