Software /
code /
prosody
Diff
plugins/muc/mod_muc.lua @ 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 |
parent | 7266:f0a2a305b788 |
child | 7747:0e442402cebc |
child | 8025:8a7c4497569a |
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