plugins/muc/mod_muc.lua
changeset 9651 0f43b901c854
parent 9630 4d3ab7153153
child 10357 7b602e13c3b6
--- a/plugins/muc/mod_muc.lua	Mon Nov 26 19:48:17 2018 +0100
+++ b/plugins/muc/mod_muc.lua	Tue Nov 27 17:01:47 2018 +0100
@@ -453,7 +453,7 @@
 
 		if room == nil then
 			-- Watch presence to create rooms
-			if stanza.attr.type == nil and stanza.name == "presence" then
+			if stanza.attr.type == nil and stanza.name == "presence" and stanza:get_child("x", "http://jabber.org/protocol/muc") then
 				room = muclib.new_room(room_jid);
 				return room:handle_first_presence(origin, stanza);
 			elseif stanza.attr.type ~= "error" then