Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 6266:cabeff5fc687
plugins/muc/muc.lib: Fire event for presence broadcast
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Thu, 29 May 2014 13:27:41 -0400 |
parent | 6253:2df9e7a67e56 |
child | 6267:8dc9a89ada7d |
comparison
equal
deleted
inserted
replaced
6253:2df9e7a67e56 | 6266:cabeff5fc687 |
---|---|
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 |