From 264ed76508ef6a0bf83f28f55e53ff9ae906b7cd Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 17 Feb 2009 02:48:06 +0500 Subject: MUC: Fixed: Presence for user joining the roomi was sent twice to the user --- plugins/mod_muc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_muc.lua b/plugins/mod_muc.lua index 9a559f2d..a306c699 100644 --- a/plugins/mod_muc.lua +++ b/plugins/mod_muc.lua @@ -298,7 +298,7 @@ function handle_to_occupant(origin, stanza) -- PM, vCards, etc local r = rooms:get(room); if r then for occupant, o_data in pairs(r) do - if occupant ~= from then + if occupant ~= to then local pres = get_filtered_presence(o_data.sessions[o_data.jid]); pres.attr.to, pres.attr.from = from, occupant; pres -- cgit v1.2.3