Diff

plugins/muc/mod_muc.lua @ 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
parent 8704:c0e812dd9dfc
child 8707:fd39c44c0113
child 8841:bc8558bbc797
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