Diff

plugins/muc/description.lib.lua @ 7124:a0764a8d6b26

MUC: Roll back parts of 50b9a7e86de9 that were not in the disco#info event
author Kim Alvefur <zash@zash.se>
date Thu, 04 Feb 2016 09:18:53 +0100
parent 7119:50b9a7e86de9
child 7352:50b24b3476e6
line wrap: on
line diff
--- a/plugins/muc/description.lib.lua	Wed Feb 03 23:02:36 2016 +0100
+++ b/plugins/muc/description.lib.lua	Thu Feb 04 09:18:53 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);