diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-27 00:10:51 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-27 00:10:51 +0100 |
commit | ba7c7c9267f7cbc9a2cce8b09c8afd304334dc98 (patch) | |
tree | 41ae12fcca7be07727f22aca98e93186c4c432b9 /plugins/muc/mod_muc.lua | |
parent | 234d7178f15e860dc6c624f1e16dd245372ec34d (diff) | |
download | prosody-ba7c7c9267f7cbc9a2cce8b09c8afd304334dc98.tar.gz prosody-ba7c7c9267f7cbc9a2cce8b09c8afd304334dc98.zip |
MUC: Don't create room in response to unavailable presence
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r-- | plugins/muc/mod_muc.lua | 2 |
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 |