From 057096d12b0da36a799b90d09120ccc0bd3174d0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 17 Jul 2018 11:54:02 +0100 Subject: MUC: Add 'actor' field in muc-config-submitted event --- plugins/muc/muc.lib.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'plugins/muc') diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 7f7de4fd..fc22a630 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -801,7 +801,14 @@ function room_mt:process_form(origin, stanza) 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 -- cgit v1.2.3