# HG changeset patch # User Waqas Hussain # Date 1244979111 -18000 # Node ID b58ff7ed567618b6a82673a37de1a34dd84d3132 # Parent ea43c371228a6252e252cd0f11e211c464317173 mod_muc: Don't reply with an error in response to unacceptable result stanzas diff -r ea43c371228a -r b58ff7ed5676 plugins/mod_muc.lua --- a/plugins/mod_muc.lua Sun Jun 14 16:30:45 2009 +0500 +++ b/plugins/mod_muc.lua Sun Jun 14 16:31:51 2009 +0500 @@ -321,7 +321,7 @@ 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"));