mod_muc: Don't bounce error replies in response to errors

Mon, 02 Mar 2009 19:50:28 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 02 Mar 2009 19:50:28 +0000
changeset 856
946d0f91bd38
parent 855
57057f2cbecb
child 857
49298263f241
child 862
b3b80ccddb0c

mod_muc: Don't bounce error replies in response to errors

plugins/mod_muc.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_muc.lua	Mon Mar 02 19:49:09 2009 +0000
+++ b/plugins/mod_muc.lua	Mon Mar 02 19:50:28 2009 +0000
@@ -287,7 +287,7 @@
 		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"));

mercurial