aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-08 17:53:49 +0200
committerKim Alvefur <zash@zash.se>2016-04-08 17:53:49 +0200
commit628c76ff501fd550d55b54b1f02a401037fe69e1 (patch)
tree0e6e63bef9f27601f1bb44640dfdc0563217bb84 /plugins/muc
parentb22eef35d7c97defb727023336fb55a29da0f0e9 (diff)
downloadprosody-628c76ff501fd550d55b54b1f02a401037fe69e1.tar.gz
prosody-628c76ff501fd550d55b54b1f02a401037fe69e1.zip
MUC: Spread event tables over multiple lines
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua21
1 files changed, 18 insertions, 3 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 69d34e75..8a3a3ebd 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -491,7 +491,11 @@ function room_mt:handle_presence_to_occupant(origin, stanza)
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 @@ function room_mt:handle_presence_to_occupant(origin, stanza)
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