X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=plugins%2Fmuc%2Fname.lib.lua;h=d9bfc4cf0f0a2315ca447ef7daaaa9c4ecf9d5de;hb=0c6805a72d2d213ee0369c965aa06c8caa0ed02a;hp=18400e92ca8bba3491a7c7c3b58b730dc7f114b1;hpb=c3eb08a4cf1173512900c210588f403427946503;p=prosody.git diff --git a/plugins/muc/name.lib.lua b/plugins/muc/name.lib.lua index 18400e92..d9bfc4cf 100644 --- a/plugins/muc/name.lib.lua +++ b/plugins/muc/name.lib.lua @@ -30,8 +30,8 @@ module:hook("muc-config-form", function(event) name = "muc#roomconfig_roomname"; type = "text-single"; label = "Name"; + value = get_name(event.room) or ""; }); - event.formdata["muc#roomconfig_roomname"] = get_description(event.room) or ""; end); module:hook("muc-config-submitted/muc#roomconfig_roomname", function(event)