Comparison

plugins/muc/muc.lib.lua @ 6267:8dc9a89ada7d

Merge with daurnimator
author Waqas Hussain <waqas20@gmail.com>
date Fri, 30 May 2014 18:31:26 -0400
parent 6254:da4c04df90e3
parent 6266:cabeff5fc687
child 6268:23cb8a78ecc6
comparison
equal deleted inserted replaced
6265:f8945a030bc6 6267:8dc9a89ada7d
205 local x = st.clone(base_x); 205 local x = st.clone(base_x);
206 self:build_item_list(occupant, x, is_anonymous, nick, actor, reason); 206 self:build_item_list(occupant, x, is_anonymous, nick, actor, reason);
207 return get_base_presence(occupant):add_child(x), x; 207 return get_base_presence(occupant):add_child(x), x;
208 end 208 end
209 local full_p, full_x = get_presence(false); 209 local full_p, full_x = get_presence(false);
210
211 module:fire_event("muc-broadcast-presence", {room = self; stanza = full_p; x = full_x;});
212
210 local anon_p, anon_x; 213 local anon_p, anon_x;
211 local function get_anon_p() 214 local function get_anon_p()
212 if anon_p == nil then 215 if anon_p == nil then
213 anon_p, anon_x = get_presence(true); 216 anon_p, anon_x = get_presence(true);
214 end 217 end