Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 6318:e5e7a789ef55
mod_muc/muc.lib: Remove is_anonymous from event (fix for ec57067c1e0d)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 25 Jul 2014 18:34:43 +0100 |
parent | 6317:ec57067c1e0d |
child | 6391:4d334d00c635 |
comparison
equal
deleted
inserted
replaced
6317:ec57067c1e0d | 6318:e5e7a789ef55 |
---|---|
201 base_presence = base_presence or st.presence {from = occupant.nick; type = "unavailable";}; | 201 base_presence = base_presence or st.presence {from = occupant.nick; type = "unavailable";}; |
202 | 202 |
203 -- Fire event (before full_p and anon_p are created) | 203 -- Fire event (before full_p and anon_p are created) |
204 module:fire_event("muc-broadcast-presence", { | 204 module:fire_event("muc-broadcast-presence", { |
205 room = self; stanza = base_presence; x = base_x; | 205 room = self; stanza = base_presence; x = base_x; |
206 occupant = occupant; is_anonymous = is_anonymous; | 206 occupant = occupant; nick = nick; actor = actor; |
207 nick = nick; actor = actor; reason = reason; | 207 reason = reason; |
208 }); | 208 }); |
209 | 209 |
210 local function get_presence(is_anonymous) | 210 local function get_presence(is_anonymous) |
211 local x = st.clone(base_x); | 211 local x = st.clone(base_x); |
212 self:build_item_list(occupant, x, is_anonymous, nick, actor, reason); | 212 self:build_item_list(occupant, x, is_anonymous, nick, actor, reason); |