# HG changeset patch # User Matthew Wild # Date 1531824842 -3600 # Node ID 5017e43ccc395cd1ca266a9d15b9fdac4a0e60fd # Parent 68386f7b9fc9f75d84f9679c410a8817cd860d32 MUC: Add 'actor' field in muc-config-submitted event diff -r 68386f7b9fc9 -r 5017e43ccc39 plugins/muc/muc.lib.lua --- 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