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
commit057096d12b0da36a799b90d09120ccc0bd3174d0 (patch)
tree2b4a3cb250ec5a9c2693362bd1ebdea260ba8416
parent78bc1a2cd58f4582cc309e9fddd832c56018526c (diff)
downloadprosody-057096d12b0da36a799b90d09120ccc0bd3174d0.tar.gz
prosody-057096d12b0da36a799b90d09120ccc0bd3174d0.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