# HG changeset patch # User daurnimator # Date 1396026671 14400 # Node ID a8e777a198164f269a571e812829b2bbf9281683 # Parent dbf0b09664cddb0f76596aac0d953bf0f079e5e0 plugins/muc/muc.lib: Fix sending occupant jid instead of real jid in actor diff -r dbf0b09664cd -r a8e777a19816 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Fri Mar 28 13:05:36 2014 -0400 +++ b/plugins/muc/muc.lib.lua Fri Mar 28 13:11:11 2014 -0400 @@ -163,18 +163,18 @@ function room_mt:build_item_list(occupant, x, is_anonymous, nick, actor, reason) local affiliation = self:get_affiliation(occupant.bare_jid); local role = occupant.role; - local actor_jid = actor and self:get_occupant_jid(actor); + local actor_attr; if actor then - actor = {nick = select(3,jid_split(actor_jid))}; + actor_attr = {nick = select(3,jid_split(self:get_occupant_jid(actor)))}; end if is_anonymous then - add_item(x, affiliation, role, nil, nick, actor, reason); + add_item(x, affiliation, role, nil, nick, actor_attr, reason); else - if actor_jid then - actor.jid = actor_jid; + if actor_attr then + actor_attr.jid = actor; end for real_jid, session in occupant:each_session() do - add_item(x, affiliation, role, real_jid, nick, actor, reason); + add_item(x, affiliation, role, real_jid, nick, actor_attr, reason); end end return x