From de03c0a6dbfc9cef77bb84609351c0f8f0357f93 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 27 Nov 2016 00:10:51 +0100 Subject: MUC: Don't create room in response to unavailable presence --- plugins/muc/mod_muc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index ee90d552..90b01cc7 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -159,7 +159,7 @@ function stanza_handler(event) 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 -- cgit v1.2.3