aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-09-16 17:11:29 -0400
committerdaurnimator <quae@daurnimator.com>2014-09-16 17:11:29 -0400
commit77918edaac029ab1fe1c62ffe5a72e0ed0046065 (patch)
tree39e97f24e3b59d51380068956aa892cd06d0fae6
parent1324a994958a3d4206640db57b11a7a6d504d83a (diff)
downloadprosody-77918edaac029ab1fe1c62ffe5a72e0ed0046065.tar.gz
prosody-77918edaac029ab1fe1c62ffe5a72e0ed0046065.zip
plugins/muc/muc.lib: Fix iq results coming from the real jid, not the in-room jid (thanks Lance)
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 6bcb28b1..f2dde69e 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -531,7 +531,7 @@ function room_mt:handle_iq_to_occupant(origin, stanza)
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);