# HG changeset patch # User Waqas Hussain <waqas20@gmail.com> # Date 1234820886 -18000 # Node ID e3e3919b6c7e02f9efa858a5223f3d5eff5e869c # Parent f12b1ddd458dca0ed640b0af61529f3dfff13b2d MUC: Fixed: Presence for user joining the roomi was sent twice to the user diff -r f12b1ddd458d -r e3e3919b6c7e plugins/mod_muc.lua --- a/plugins/mod_muc.lua Mon Feb 16 15:44:54 2009 +0000 +++ b/plugins/mod_muc.lua Tue Feb 17 02:48:06 2009 +0500 @@ -298,7 +298,7 @@ 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