From 7b11f2c6503e05ad3281b30c4998a8faaea3e418 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 4 Feb 2016 09:18:53 +0100 Subject: MUC: Roll back parts of 50b9a7e86de9 that were not in the disco#info event --- plugins/muc/name.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/muc/name.lib.lua') diff --git a/plugins/muc/name.lib.lua b/plugins/muc/name.lib.lua index 302c2992..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_name(event.room) or ""; end); module:hook("muc-config-submitted/muc#roomconfig_roomname", function(event) -- cgit v1.2.3