aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-07-17 11:54:02 +0100
committerMatthew Wild <mwild1@gmail.com>2018-07-17 11:54:02 +0100
commit999ee9e30bb5ee13b16fb8823190264373d38ca2 (patch)
tree2b4a3cb250ec5a9c2693362bd1ebdea260ba8416
parent64189fdc63a2a04d05a738308deb76a303638445 (diff)
downloadprosody-999ee9e30bb5ee13b16fb8823190264373d38ca2.tar.gz
prosody-999ee9e30bb5ee13b16fb8823190264373d38ca2.zip
MUC: Add 'actor' field in muc-config-submitted event
-rw-r--r--plugins/muc/muc.lib.lua9
1 files changed, 8 insertions, 1 deletions
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