Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Wed May 21 13:19:57 2014 -0400 +++ b/plugins/muc/muc.lib.lua Thu May 29 13:27:41 2014 -0400 @@ -207,6 +207,9 @@ return get_base_presence(occupant):add_child(x), x; end local full_p, full_x = get_presence(false); + + module:fire_event("muc-broadcast-presence", {room = self; stanza = full_p; x = full_x;}); + local anon_p, anon_x; local function get_anon_p() if anon_p == nil then