# HG changeset patch # User Kim Alvefur # Date 1522253469 -7200 # Node ID 1d66f66a13c9f84ffc61dd6107506c54f48566de # Parent c0e812dd9dfcb289055cbe4c3627277729f25d03 MUC: Don't reply to errors with more errors (fixes #1122) diff -r c0e812dd9dfc -r 1d66f66a13c9 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Mon Mar 12 16:05:08 2018 +0100 +++ b/plugins/muc/mod_muc.lua Wed Mar 28 18:11:09 2018 +0200 @@ -171,7 +171,9 @@ local room = rooms[bare]; if not room then if stanza.name ~= "presence" or stanza.attr.type ~= nil then - origin.send(st.error_reply(stanza, "cancel", "item-not-found")); + if stanza.attr.type ~= "error" then + origin.send(st.error_reply(stanza, "cancel", "item-not-found")); + end return true; end if not(restrict_room_creation) or