MUC: Fixed: Unavilable presence was not being broadcasted for banned users in some cases (thanks Zash).

Tue, 03 Aug 2010 21:37:06 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Tue, 03 Aug 2010 21:37:06 +0500
changeset 3446
9c0b3cd890e9
parent 3445
2fde9cb97f76
child 3447
cc2dc55e66f9

MUC: Fixed: Unavilable presence was not being broadcasted for banned users in some cases (thanks Zash).

plugins/muc/muc.lib.lua file | annotate | diff | comparison | revisions
--- a/plugins/muc/muc.lib.lua	Tue Aug 03 21:07:00 2010 +0500
+++ b/plugins/muc/muc.lib.lua	Tue Aug 03 21:37:06 2010 +0500
@@ -862,10 +862,10 @@
 	local modified_nicks = {};
 	for nick, occupant in pairs(self._occupants) do
 		if jid_bare(occupant.jid) == jid then
+			t_insert(modified_nicks, nick);
 			if not role then -- getting kicked
 				self._occupants[nick] = nil;
 			else
-				t_insert(modified_nicks, nick);
 				occupant.affiliation, occupant.role = affiliation, role;
 			end
 			p.attr.from = nick;

mercurial