util.muc: Don't reply with an error in response to unacceptable result stanzas

Sun, 14 Jun 2009 16:30:45 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sun, 14 Jun 2009 16:30:45 +0500
changeset 1350
ea43c371228a
parent 1349
1d6c4a6c75e5
child 1351
b58ff7ed5676

util.muc: Don't reply with an error in response to unacceptable result stanzas

util/muc.lua file | annotate | diff | comparison | revisions
--- a/util/muc.lua	Sun Jun 14 16:28:01 2009 +0500
+++ b/util/muc.lua	Sun Jun 14 16:30:45 2009 +0500
@@ -262,7 +262,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"));

mercurial