Changeset

7746:3dff38ffdcd0

MUC: Don't create room in response to unavailable presence
author Kim Alvefur <zash@zash.se>
date Sun, 27 Nov 2016 00:10:51 +0100
parents 7744:4d9186d990a5
children 7747:0e442402cebc 7748:4ba697569f84
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Sat Nov 26 20:10:40 2016 +0100
+++ b/plugins/muc/mod_muc.lua	Sun Nov 27 00:10:51 2016 +0100
@@ -159,7 +159,7 @@
 	local bare = jid_bare(stanza.attr.to);
 	local room = rooms[bare];
 	if not room then
-		if stanza.name ~= "presence" then
+		if stanza.name ~= "presence" or stanza.attr.type ~= nil then
 			origin.send(st.error_reply(stanza, "cancel", "item-not-found"));
 			return true;
 		end