aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit61bb7fbe1bc2c7f560f9b7b276d5a3a3541aa906 (patch)
tree1a44fd5f6e2d53e67d7e40f11190d91aa0083c89 /plugins
parenta43f3d9eba68957035cf94711e0a713003d0e095 (diff)
downloadprosody-61bb7fbe1bc2c7f560f9b7b276d5a3a3541aa906.tar.gz
prosody-61bb7fbe1bc2c7f560f9b7b276d5a3a3541aa906.zip
plugins/muc/muc.lib: Fix whois check when broadcasting occupant presence
Diffstat (limited to 'plugins')
-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();