Changeset

8830:5d7db3c7c026

MUC: Pass description via formdata field where it should be
author Kim Alvefur <zash@zash.se>
date Sat, 26 May 2018 15:09:27 +0200
parents 8829:6dd7fea941f6
children 8831:f25fa63750fb
files plugins/muc/description.lib.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/description.lib.lua	Sat May 26 14:44:50 2018 +0200
+++ b/plugins/muc/description.lib.lua	Sat May 26 15:09:27 2018 +0200
@@ -22,8 +22,9 @@
 	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)