aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2014-06-01 04:42:55 -0400
committerWaqas Hussain <waqas20@gmail.com>2014-06-01 04:42:55 -0400
commit13bb4e436c4327c969f49984eac471a4c82de9df (patch)
tree1a44fd5f6e2d53e67d7e40f11190d91aa0083c89
parent3799eafb2f66e9c279a0786dc54202cf54d20cca (diff)
downloadprosody-13bb4e436c4327c969f49984eac471a4c82de9df.tar.gz
prosody-13bb4e436c4327c969f49984eac471a4c82de9df.zip
plugins/muc/muc.lib: Fix whois check when broadcasting occupant presence
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 1fc922d4..db7c3592 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -224,7 +224,7 @@ function room_mt:publicise_occupant_status(occupant, base_x, nick, actor, reason
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();