plugins/muc/mod_muc.lua
changeset 7249 80923a1a8fe1
parent 7089 6cc7c9da29ed
child 7272 cde4ef90cf3d
--- 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);