Changeset

7347:795a95258292

MUC: Include originating session and stanza in events
author Kim Alvefur <zash@zash.se>
date Fri, 08 Apr 2016 17:54:46 +0200
parents 7346:4ea5ce5efff8
children 7348:a8ca12e7c2fb
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Fri Apr 08 17:53:49 2016 +0200
+++ b/plugins/muc/muc.lib.lua	Fri Apr 08 17:54:46 2016 +0200
@@ -495,6 +495,8 @@
 					room = self;
 					nick = orig_occupant.nick;
 					occupant = orig_occupant;
+					origin = origin;
+					stanza = stanza;
 				});
 			end
 		end
@@ -537,6 +539,8 @@
 						room = self;
 						nick = dest_occupant.nick;
 						occupant = dest_occupant;
+						stanza = stanza;
+						origin = origin;
 					});
 				end
 				module:fire_event("muc-occupant-session-new", {