Software /
code /
prosody
Changeset
8705:1d66f66a13c9
MUC: Don't reply to errors with more errors (fixes #1122)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 28 Mar 2018 18:11:09 +0200 |
parents | 8704:c0e812dd9dfc |
children | 8706:e2919978673e |
files | plugins/muc/mod_muc.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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