From: Kim Alvefur Date: Fri, 8 Apr 2016 15:54:46 +0000 (+0200) Subject: MUC: Include originating session and stanza in events X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=585a239ff040bbe33b2d4e43dff8ea83fa742dcf;p=prosody.git MUC: Include originating session and stanza in events --- 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", {