diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-03-02 19:50:28 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-03-02 19:50:28 +0000 |
commit | b6b9906c3c653935b55ad79ad4a2c41118f0a0e3 (patch) | |
tree | 06842c147a3848e96d45c5bbd117ed1a3c2f5de2 | |
parent | 0a2936fb0fef58e0937a86fa42e213bec51650f2 (diff) | |
download | prosody-b6b9906c3c653935b55ad79ad4a2c41118f0a0e3.tar.gz prosody-b6b9906c3c653935b55ad79ad4a2c41118f0a0e3.zip |
mod_muc: Don't bounce error replies in response to errors
-rw-r--r-- | plugins/mod_muc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_muc.lua b/plugins/mod_muc.lua index 83c35563..1f8d04e9 100644 --- a/plugins/mod_muc.lua +++ b/plugins/mod_muc.lua @@ -287,7 +287,7 @@ function handle_to_occupant(origin, stanza) -- PM, vCards, etc elseif type ~= 'result' then -- bad type origin.send(st.error_reply(stanza, "modify", "bad-request")); -- FIXME correct error? end - elseif not current_nick then -- not in room + elseif not current_nick and type ~= "error" then -- not in room origin.send(st.error_reply(stanza, "cancel", "not-acceptable")); elseif stanza.name == "message" and type == "groupchat" then -- groupchat messages not allowed in PM origin.send(st.error_reply(stanza, "modify", "bad-request")); |