aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-08 17:54:46 +0200
committerKim Alvefur <zash@zash.se>2016-04-08 17:54:46 +0200
commit9dea8d532de0cb8dd6927554d3b347d8c62f2131 (patch)
tree450c12321cc57ef6068fe53c7dbedcfc9d8d239f /plugins/muc/muc.lib.lua
parent32a926b10bd1877170c7fe01d83260170175414e (diff)
downloadprosody-9dea8d532de0cb8dd6927554d3b347d8c62f2131.tar.gz
prosody-9dea8d532de0cb8dd6927554d3b347d8c62f2131.zip
MUC: Include originating session and stanza in events
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 8a3a3ebd..02bc47f0 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -495,6 +495,8 @@ function room_mt:handle_presence_to_occupant(origin, stanza)
room = self;
nick = orig_occupant.nick;
occupant = orig_occupant;
+ origin = origin;
+ stanza = stanza;
});
end
end
@@ -537,6 +539,8 @@ function room_mt:handle_presence_to_occupant(origin, stanza)
room = self;
nick = dest_occupant.nick;
occupant = dest_occupant;
+ stanza = stanza;
+ origin = origin;
});
end
module:fire_event("muc-occupant-session-new", {