# HG changeset patch # User Kim Alvefur # Date 1454573933 -3600 # Node ID a0764a8d6b2610999baeebc088dcdac39bf98a0e # Parent a7ace4f320806577abc50bcb6799ac384e56146e MUC: Roll back parts of 50b9a7e86de9 that were not in the disco#info event diff -r a7ace4f32080 -r a0764a8d6b26 plugins/muc/description.lib.lua --- 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); diff -r a7ace4f32080 -r a0764a8d6b26 plugins/muc/name.lib.lua --- a/plugins/muc/name.lib.lua Wed Feb 03 23:02:36 2016 +0100 +++ b/plugins/muc/name.lib.lua Thu Feb 04 09:18:53 2016 +0100 @@ -30,8 +30,8 @@ name = "muc#roomconfig_roomname"; type = "text-single"; label = "Name"; + value = get_name(event.room) or ""; }); - event.formdata["muc#roomconfig_roomname"] = get_name(event.room) or ""; end); module:hook("muc-config-submitted/muc#roomconfig_roomname", function(event)