Diff

plugins/muc/muc.lib.lua @ 6268:23cb8a78ecc6

plugins/muc/muc.lib: Fix whois check when broadcasting occupant presence
author Waqas Hussain <waqas20@gmail.com>
date Sun, 01 Jun 2014 04:42:55 -0400
parent 6267:8dc9a89ada7d
child 6269:f89d2dec2977
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Fri May 30 18:31:26 2014 -0400
+++ b/plugins/muc/muc.lib.lua	Sun Jun 01 04:42:55 2014 -0400
@@ -224,7 +224,7 @@
 	for nick, n_occupant in self:each_occupant() do
 		if nick ~= occupant.nick then
 			local pr;
-			if can_see_real_jids(whois, occupant) or occupant.bare_jid == n_occupant.bare_jid then
+			if can_see_real_jids(whois, n_occupant) or occupant.bare_jid == n_occupant.bare_jid then
 				pr = full_p;
 			else
 				pr = get_anon_p();