plugins/muc/muc.lib: Fix iq results coming from the real jid, not the in-room jid (thanks Lance)
authordaurnimator <quae@daurnimator.com>
Tue, 16 Sep 2014 17:11:29 -0400
changeset 6422 84b332eacde9
parent 6421 ae798314347c
child 6426 1c78f10f05d0
plugins/muc/muc.lib: Fix iq results coming from the real jid, not the in-room jid (thanks Lance)
plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Thu Sep 18 02:22:48 2014 +0200
+++ b/plugins/muc/muc.lib.lua	Tue Sep 16 17:11:29 2014 -0400
@@ -531,7 +531,7 @@
 				end
 			end
 			if session_jid == nil then return nil; end
-			stanza.attr.from, stanza.attr.to, stanza.attr.id = from_jid, session_jid, id;
+			stanza.attr.from, stanza.attr.to, stanza.attr.id = from_occupant_jid, session_jid, id;
 		end
 		log("debug", "%s sent private iq stanza to %s (%s)", from, to, stanza.attr.to);
 		self:route_stanza(stanza);