Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 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 |
parent | 9027:4028eb4a9f7f |
child | 9054:0bf0ff3b0f91 |
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