aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-08-03 21:37:06 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-08-03 21:37:06 +0500
commit9b5ea721c474c488cffe9e7a303f9cc9bd4b6171 (patch)
tree168ce80555ec04447b3a94c74ba13654134aa433 /plugins/muc/muc.lib.lua
parent683109cd9e634ca8b5caeb61a8aa8f69cf15ca07 (diff)
downloadprosody-9b5ea721c474c488cffe9e7a303f9cc9bd4b6171.tar.gz
prosody-9b5ea721c474c488cffe9e7a303f9cc9bd4b6171.zip
MUC: Fixed: Unavilable presence was not being broadcasted for banned users in some cases (thanks Zash).
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-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 9ac3472f..32d539e7 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -862,10 +862,10 @@ function room_mt:set_affiliation(actor, jid, affiliation, callback, reason)
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;