Changeset

7246:80923a1a8fe1

MUC: Don't reply to error stanzas with more error stanzas (thanks woffs)
author Kim Alvefur <zash@zash.se>
date Mon, 07 Mar 2016 10:59:37 +0100
parents 7245:210d8329dc70
children 7248:5e1fe4f0eb9c
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	Sun Mar 06 18:52:22 2016 +0100
+++ b/plugins/muc/mod_muc.lua	Mon Mar 07 10:59:37 2016 +0100
@@ -255,9 +255,11 @@
 			-- 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);