diff options
author | daurnimator <quae@daurnimator.com> | 2014-05-29 13:27:41 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-05-29 13:27:41 -0400 |
commit | d90fa5cc55629417e7fd8eaa90538b1ebfbe377d (patch) | |
tree | 24482092187270fa7d43874d0aa76dc8debdf114 /plugins/muc/muc.lib.lua | |
parent | 4d7106bee63fe544a4bec49c201d56b93d3794d3 (diff) | |
download | prosody-d90fa5cc55629417e7fd8eaa90538b1ebfbe377d.tar.gz prosody-d90fa5cc55629417e7fd8eaa90538b1ebfbe377d.zip |
plugins/muc/muc.lib: Fire event for presence broadcast
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 0b361763..1fc922d4 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -207,6 +207,9 @@ function room_mt:publicise_occupant_status(occupant, base_x, nick, actor, reason 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 |