MUC: Fixed: Presence for user joining the roomi was sent twice to the user

Tue, 17 Feb 2009 02:48:06 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Tue, 17 Feb 2009 02:48:06 +0500
changeset 817
e3e3919b6c7e
parent 814
f12b1ddd458d
child 818
4dda65cd1405

MUC: Fixed: Presence for user joining the roomi was sent twice to the user

plugins/mod_muc.lua file | annotate | diff | comparison | revisions
--- 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

mercurial