From 585a239ff040bbe33b2d4e43dff8ea83fa742dcf Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 8 Apr 2016 17:54:46 +0200 Subject: [PATCH] MUC: Include originating session and stanza in events --- plugins/muc/muc.lib.lua | 4 ++++ 1 file changed, 4 insertions(+) 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", { -- 2.30.2