plugins/mod_muc.lua

changeset 817
e3e3919b6c7e
parent 812
ebfb904640d8
child 818
4dda65cd1405
--- 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