aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-27 00:10:51 +0100
committerKim Alvefur <zash@zash.se>2016-11-27 00:10:51 +0100
commitde03c0a6dbfc9cef77bb84609351c0f8f0357f93 (patch)
tree41ae12fcca7be07727f22aca98e93186c4c432b9 /plugins/muc
parent1b95aabe8959649223e49482b31eea221844d7a3 (diff)
downloadprosody-de03c0a6dbfc9cef77bb84609351c0f8f0357f93.tar.gz
prosody-de03c0a6dbfc9cef77bb84609351c0f8f0357f93.zip
MUC: Don't create room in response to unavailable presence
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
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