diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-07-25 18:32:15 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-07-25 18:32:15 +0100 |
commit | 4aba920b7e87b05c8ed6750149bf0ff6a9a65ab8 (patch) | |
tree | c199c0eea0631fc1bacc0231904a0273407dac28 /plugins | |
parent | 132c641c95e07ebc28d346a503fc59085c881f6b (diff) | |
download | prosody-4aba920b7e87b05c8ed6750149bf0ff6a9a65ab8.tar.gz prosody-4aba920b7e87b05c8ed6750149bf0ff6a9a65ab8.zip |
mod_muc/muc.lib: Pass all info to muc-broadcast-presence handlers that would be required to use room:build_item_list() - useful for plugins
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/muc/muc.lib.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 3ee17b03..1d95b6f8 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -201,7 +201,11 @@ function room_mt:publicise_occupant_status(occupant, base_x, nick, actor, reason base_presence = base_presence or st.presence {from = occupant.nick; type = "unavailable";}; -- Fire event (before full_p and anon_p are created) - module:fire_event("muc-broadcast-presence", {room = self; stanza = base_presence; x = base_x;}); + module:fire_event("muc-broadcast-presence", { + room = self; stanza = base_presence; x = base_x; + occupant = occupant; is_anonymous = is_anonymous; + nick = nick; actor = actor; reason = reason; + }); local function get_presence(is_anonymous) local x = st.clone(base_x); |