MUC: Workaround for a Gajim bug (it includes <x xmlns='http://jabber.org/protocol/muc'/> in nick change presences)

Fri, 20 Feb 2009 03:52:04 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Fri, 20 Feb 2009 03:52:04 +0500
changeset 831
e2d2095705dc
parent 830
c0554caf90e6
child 832
282ae70db19f

MUC: Workaround for a Gajim bug (it includes <x xmlns='http://jabber.org/protocol/muc'/> in nick change presences)

plugins/mod_muc.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_muc.lua	Fri Feb 20 02:23:21 2009 +0500
+++ b/plugins/mod_muc.lua	Fri Feb 20 03:52:04 2009 +0500
@@ -258,7 +258,7 @@
 			end
 		elseif not type then -- available
 			if current_nick then
-				if #pr == #stanza then
+				if #pr == #stanza or current_nick ~= to then
 					if current_nick == to then -- simple presence
 						log("debug", "%s broadcasted presence", current_nick);
 						rooms:get(room, current_nick).sessions[from] = pr;

mercurial