Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
6267:8dc9a89ada7d | 6268:23cb8a78ecc6 |
---|---|
222 | 222 |
223 -- General populance | 223 -- General populance |
224 for nick, n_occupant in self:each_occupant() do | 224 for nick, n_occupant in self:each_occupant() do |
225 if nick ~= occupant.nick then | 225 if nick ~= occupant.nick then |
226 local pr; | 226 local pr; |
227 if can_see_real_jids(whois, occupant) or occupant.bare_jid == n_occupant.bare_jid then | 227 if can_see_real_jids(whois, n_occupant) or occupant.bare_jid == n_occupant.bare_jid then |
228 pr = full_p; | 228 pr = full_p; |
229 else | 229 else |
230 pr = get_anon_p(); | 230 pr = get_anon_p(); |
231 end | 231 end |
232 self:route_to_occupant(n_occupant, pr); | 232 self:route_to_occupant(n_occupant, pr); |