Software /
code /
prosody
Changeset
7248:5e1fe4f0eb9c
Merge
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 07 Mar 2016 13:43:05 +0000 |
parents | 7247:44b39c02eb33 (current diff) 7246:80923a1a8fe1 (diff) |
children | 7251:b74421fe417a |
files | |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Mon Feb 15 16:28:22 2016 +1100 +++ b/plugins/muc/mod_muc.lua Mon Mar 07 13:43:05 2016 +0000 @@ -255,9 +255,11 @@ -- Watch presence to create rooms if stanza.attr.type == nil and stanza.name == "presence" then room = muclib.new_room(room_jid); - else + elseif stanza.attr.type ~= "error" then origin.send(st.error_reply(stanza, "cancel", "not-allowed")); return true; + else + return; end end return room[method](room, origin, stanza);