diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-14 16:31:51 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-14 16:31:51 +0500 |
commit | f52647433b521b35ce906c96ede576e76ad65e4c (patch) | |
tree | 0cfd5caf0e12964f86f3ad323cf1808b31442657 | |
parent | 84f9d6c5315c6b5d936663fcdab4442e4b192714 (diff) | |
download | prosody-f52647433b521b35ce906c96ede576e76ad65e4c.tar.gz prosody-f52647433b521b35ce906c96ede576e76ad65e4c.zip |
mod_muc: Don't reply with an error in response to unacceptable result stanzas
-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 38f21b4a..fa85f78f 100644 --- a/plugins/mod_muc.lua +++ b/plugins/mod_muc.lua @@ -321,7 +321,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 and type ~= "error" then -- not in room + elseif not current_nick and type ~= "error" and type ~= "result" 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")); |