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
commit871cb9babec58d526dcd5f1e08d3940041d4c5bd (patch)
tree059abdcd1b407b6c8b4d55c404b5ab61a4ddea15 /plugins
parentb5c4232ec38ff4284db194f7305768cff25886d4 (diff)
downloadprosody-871cb9babec58d526dcd5f1e08d3940041d4c5bd.tar.gz
prosody-871cb9babec58d526dcd5f1e08d3940041d4c5bd.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)