Diff

plugins/muc/description.lib.lua @ 7119:50b9a7e86de9

MUC: Separate form data from form in disco#info event
author Kim Alvefur <zash@zash.se>
date Wed, 03 Feb 2016 02:05:49 +0100
parent 6991:84e01dbb739e
child 7124:a0764a8d6b26
line wrap: on
line diff
--- a/plugins/muc/description.lib.lua	Mon Feb 01 21:28:07 2016 +0000
+++ b/plugins/muc/description.lib.lua	Wed Feb 03 02:05:49 2016 +0100
@@ -24,8 +24,8 @@
 		name = "muc#roomconfig_roomdesc";
 		type = "text-single";
 		label = "Description";
-		value = get_description(event.room) or "";
 	});
+	event.formdata["muc#roomconfig_roomdesc"] = get_description(event.room) or "";
 end
 module:hook("muc-disco#info", add_form_option);
 module:hook("muc-config-form", add_form_option);