aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-05-26 15:09:27 +0200
committerKim Alvefur <zash@zash.se>2018-05-26 15:09:27 +0200
commit90ebd32c7abcc1be8a6546c907daf3372701e69d (patch)
tree059abdcd1b407b6c8b4d55c404b5ab61a4ddea15 /plugins
parent154c2747e767a2bd8309ed7fde858752f69a360c (diff)
downloadprosody-90ebd32c7abcc1be8a6546c907daf3372701e69d.tar.gz
prosody-90ebd32c7abcc1be8a6546c907daf3372701e69d.zip
MUC: Pass description via formdata field where it should be
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/description.lib.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/muc/description.lib.lua b/plugins/muc/description.lib.lua
index d9e02724..537a6ff3 100644
--- a/plugins/muc/description.lib.lua
+++ b/plugins/muc/description.lib.lua
@@ -22,8 +22,9 @@ local function add_disco_form(event)
table.insert(event.form, {
name = "muc#roominfo_description";
label = "Description";
- value = get_description(event.room) or "";
+ value = "";
});
+ event.formdata["muc#roominfo_description"] = get_description(event.room);
end
local function add_form_option(event)