Diff

plugins/muc/muc.lib.lua @ 6419:84b332eacde9

plugins/muc/muc.lib: Fix iq results coming from the real jid, not the in-room jid (thanks Lance)
author daurnimator <quae@daurnimator.com>
date Tue, 16 Sep 2014 17:11:29 -0400
parent 6410:d782cbb46c2a
child 6429:675aea867574
line wrap: on
line diff
--- 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);