# HG changeset patch # User Kim Alvefur # Date 1460130829 -7200 # Node ID 4ea5ce5efff869682413fcea46dbdf4e8ba7e92d # Parent 1da5a710848df52cc4c9529a3cb680441724f72c MUC: Spread event tables over multiple lines diff -r 1da5a710848d -r 4ea5ce5efff8 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Thu Apr 07 13:36:58 2016 +0200 +++ b/plugins/muc/muc.lib.lua Fri Apr 08 17:53:49 2016 +0200 @@ -491,7 +491,11 @@ self:publicise_occupant_status(orig_occupant, orig_x, dest_nick); if is_last_orig_session then - module:fire_event("muc-occupant-left", {room = self; nick = orig_occupant.nick; occupant = orig_occupant;}); + module:fire_event("muc-occupant-left", { + room = self; + nick = orig_occupant.nick; + occupant = orig_occupant; + }); end end @@ -529,9 +533,20 @@ if orig_occupant == nil then if is_first_dest_session then - module:fire_event("muc-occupant-joined", {room = self; nick = dest_occupant.nick; occupant = dest_occupant;}); + module:fire_event("muc-occupant-joined", { + room = self; + nick = dest_occupant.nick; + occupant = dest_occupant; + }); end - module:fire_event("muc-occupant-session-new", {room = self; nick = dest_occupant.nick; occupant = dest_occupant; stanza = stanza; jid = real_jid;}); + module:fire_event("muc-occupant-session-new", { + room = self; + nick = dest_occupant.nick; + occupant = dest_occupant; + stanza = stanza; + origin = origin; + jid = real_jid; + }); end end elseif type ~= 'result' then -- bad type