plugins/muc/muc.lib.lua
changeset 6213 95bddf0142f4
parent 6212 b82523f92b06
child 6214 9813c74ce006
equal deleted inserted replaced
6212:b82523f92b06 6213:95bddf0142f4
   161 		x:tag("reason"):text(reason):up()
   161 		x:tag("reason"):text(reason):up()
   162 	end
   162 	end
   163 	x:up();
   163 	x:up();
   164 	return x
   164 	return x
   165 end
   165 end
       
   166 
   166 -- actor is (real) jid
   167 -- actor is (real) jid
   167 function room_mt:build_item_list(occupant, x, is_anonymous, nick, actor, reason)
   168 function room_mt:build_item_list(occupant, x, is_anonymous, nick, actor, reason)
   168 	local affiliation = self:get_affiliation(occupant.bare_jid);
   169 	local affiliation = self:get_affiliation(occupant.bare_jid) or "none";
   169 	local role = occupant.role;
   170 	local role = occupant.role or "none";
   170 	local actor_attr;
   171 	local actor_attr;
   171 	if actor then
   172 	if actor then
   172 		actor_attr = {nick = select(3,jid_split(self:get_occupant_jid(actor)))};
   173 		actor_attr = {nick = select(3,jid_split(self:get_occupant_jid(actor)))};
   173 	end
   174 	end
   174 	if is_anonymous then
   175 	if is_anonymous then