Diff

plugins/muc/muc.lib.lua @ 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
parent 7346:4ea5ce5efff8
child 7352:50b24b3476e6
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", {