Changeset

9052:5017e43ccc39

MUC: Add 'actor' field in muc-config-submitted event
author Matthew Wild <mwild1@gmail.com>
date Tue, 17 Jul 2018 11:54:02 +0100
parents 9051:68386f7b9fc9
children 9053:ea9e1f8f3013
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Tue Jul 17 10:35:33 2018 +0100
+++ b/plugins/muc/muc.lib.lua	Tue Jul 17 11:54:02 2018 +0100
@@ -801,7 +801,14 @@
 			end
 		end
 
-		local event = {room = self; origin = origin; stanza = stanza; fields = fields; status_codes = {};};
+		local event = {
+			room = self;
+			origin = origin;
+			stanza = stanza;
+			fields = fields;
+			status_codes = {};
+			actor = stanza.attr.from;
+		};
 		function event.update_option(name, field, allowed)
 			local new = fields[field];
 			if new == nil then return; end