diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-08 17:54:46 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-08 17:54:46 +0200 |
commit | 619e2c834d19364137a8bd112c126ef6197b6bac (patch) | |
tree | 450c12321cc57ef6068fe53c7dbedcfc9d8d239f /plugins/muc/muc.lib.lua | |
parent | 628c76ff501fd550d55b54b1f02a401037fe69e1 (diff) | |
download | prosody-619e2c834d19364137a8bd112c126ef6197b6bac.tar.gz prosody-619e2c834d19364137a8bd112c126ef6197b6bac.zip |
MUC: Include originating session and stanza in events
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 4 |
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", { |