aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-03-07 10:59:37 +0100
committerKim Alvefur <zash@zash.se>2016-03-07 10:59:37 +0100
commit8e852d367ef16f7142cb605af07e533796e52ef0 (patch)
treec4b30469da9e6c8e9e75d0b8d816049ab5e19185
parentcce0c6c56f64ff81c86e8aaaa79144a5e7e2d5fe (diff)
downloadprosody-8e852d367ef16f7142cb605af07e533796e52ef0.tar.gz
prosody-8e852d367ef16f7142cb605af07e533796e52ef0.zip
MUC: Don't reply to error stanzas with more error stanzas (thanks woffs)
-rw-r--r--plugins/muc/mod_muc.lua4
1 files changed, 3 insertions, 1 deletions
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);