From ae1e3a1930fc2953e81868ee6ae3e88de0a511b1 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 28 Mar 2018 18:11:09 +0200 Subject: MUC: Don't reply to errors with more errors (fixes #1122) --- plugins/muc/mod_muc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 0aa7fcee..7304b5b1 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -171,7 +171,9 @@ function stanza_handler(event) 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 -- cgit v1.2.3