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);
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)